We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99e2145 commit 5ca2591Copy full SHA for 5ca2591
src/ModbusEthernet.h
@@ -13,6 +13,9 @@
13
#if defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_X8)
14
#define MODBUS_ETH_WRAP_ACCEPT
15
#undef MODBUS_ETH_WRAP_BEGIN
16
+#elif defined(ESP32)
17
+#undef MODBUS_ETH_WRAP_ACCEPT
18
+#define MODBUS_ETH_WRAP_BEGIN
19
#else
20
#undef MODBUS_ETH_WRAP_ACCEPT
21
@@ -25,7 +28,7 @@ class EthernetServerWrapper : public EthernetServer {
25
28
}
26
29
#if defined(MODBUS_ETH_WRAP_BEGIN)
27
30
void begin(uint16_t port=0) {
-
31
+ EthernetServer::begin();
32
33
#endif
34
#if defined(MODBUS_ETH_WRAP_ACCEPT)
0 commit comments