Update fdrs_node_lora.h

Wrap 'yield();' in '#ifdef ESP8266' as it does not appear to be needed by any other MCUs
This commit is contained in:
Samantha 2023-05-14 20:33:33 -05:00 committed by GitHub
parent 67d0559adf
commit d976019131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -494,7 +494,9 @@ uint32_t pingFDRSLoRa(uint16_t *address, uint32_t timeout)
while ((millis() - ping_start) <= timeout)
{
handleLoRa();
#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.");