File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -264,10 +264,16 @@ bool gatewayTransportAvailable()
264
264
265
265
if (packet_size) {
266
266
// debug(PSTR("UDP packet available. Size:%d\n"), packet_size);
267
- _ethernetServer.read (inputString[0 ].string , MY_GATEWAY_MAX_RECEIVE_LENGTH);
268
- _w5100_spi_en (false );
269
- debug (PSTR (" UDP packet received: %s\n " ), inputString[0 ].string );
270
- return protocolParse (_ethernetMsg, inputString[0 ].string );
267
+ #if defined(MY_GATEWAY_ESP8266)
268
+ _ethernetServer.read (inputString[0 ].string , MY_GATEWAY_MAX_RECEIVE_LENGTH);
269
+ debug (PSTR (" UDP packet received: %s\n " ), inputString[0 ].string );
270
+ return protocolParse (_ethernetMsg, inputString[0 ].string );
271
+ #else
272
+ _ethernetServer.read (inputString.string , MY_GATEWAY_MAX_RECEIVE_LENGTH);
273
+ _w5100_spi_en (false );
274
+ debug (PSTR (" UDP packet received: %s\n " ), inputString.string );
275
+ return protocolParse (_ethernetMsg, inputString.string );
276
+ #endif
271
277
}
272
278
#else
273
279
#if defined(MY_GATEWAY_ESP8266)
You can’t perform that action at this time.
0 commit comments