Update fdrs_node_lora.h

Wrap 'yield();' in '#ifdef ESP8266' as it does not appear to be needed by any other MCUs
pull/172/head
Samantha 1 year ago committed by GitHub
parent 67d0559adf
commit d976019131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -494,7 +494,9 @@ uint32_t pingFDRSLoRa(uint16_t *address, uint32_t timeout)
while ((millis() - ping_start) <= timeout)
{
handleLoRa();
yield(); // do I need to yield or does it automatically?
#ifdef ESP8266 // yeild appears to be only needed by the ESP8266 MCUs
yield(); // do I need to yield or does it automatically?
#endif
if (pingFlag)
{
DBG("LoRa Ping Returned: " + String(millis() - ping_start) + "ms.");

Loading…
Cancel
Save