Skip to content

Commit cb91c78

Browse files
committed
Fix defines
1 parent c34be8c commit cb91c78

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

RF24Network.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,15 +1265,15 @@ void ESBNetwork<radio_t>::pipe_address(uint16_t node, uint8_t pipe, uint8_t* add
12651265
}
12661266

12671267
/******************************************************************/
1268-
1268+
#if defined ARDUINO_ARCH_ESP8266 || defined ARDUINO_ARCH_ESP32
12691269
template<class radio_t>
12701270
void ESBNetwork<radio_t>::RF24NetworkDelay(uint32_t delay)
12711271
{
12721272
uint32_t timer = millis();
12731273
while (millis() - timer < delay) {
12741274
}
12751275
}
1276-
1276+
#endif
12771277
/************************ Sleep Mode ******************************************/
12781278

12791279
#if defined ENABLE_SLEEP_MODE

RF24Network.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,11 +845,13 @@ class ESBNetwork
845845
*/
846846
uint8_t networkFlags;
847847

848+
#if defined ARDUINO_ARCH_ESP8266 || defined ARDUINO_ARCH_ESP32
848849
/**
849850
* Use a regular delay for most devices, but on ESP32 and ESP8266, use a millis() based timeout.
850851
* See RF24NETWORK_DELAY in RF24Network_config.h
851852
*/
852853
void RF24NetworkDelay(uint32_t delay);
854+
#endif
853855

854856
protected:
855857
#if defined(RF24NetworkMulticast)

0 commit comments

Comments
 (0)