mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-14 18:12:44 +00:00
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:
parent
67d0559adf
commit
d976019131
@ -494,7 +494,9 @@ uint32_t pingFDRSLoRa(uint16_t *address, uint32_t timeout)
|
|||||||
while ((millis() - ping_start) <= timeout)
|
while ((millis() - ping_start) <= timeout)
|
||||||
{
|
{
|
||||||
handleLoRa();
|
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)
|
if (pingFlag)
|
||||||
{
|
{
|
||||||
DBG("LoRa Ping Returned: " + String(millis() - ping_start) + "ms.");
|
DBG("LoRa Ping Returned: " + String(millis() - ping_start) + "ms.");
|
||||||
|
Loading…
Reference in New Issue
Block a user