Skip to content

Commit

Permalink
Add fix for ESP32
Browse files Browse the repository at this point in the history
- Found ESP32 needs a delay here as well
  • Loading branch information
TMRh20 committed Sep 27, 2023
1 parent d3ded1b commit 7fd48a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RF24Ethernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ void RF24EthernetClass::tick()
#if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_RP2040)
yield();
#endif
#if defined(ARDUINO_ARCH_ESP32)
const TickType_t xDelay = 1 / portTICK_PERIOD_MS;
vTaskDelay( xDelay );
#endif

if (RF24Ethernet.network.update() == EXTERNAL_DATA_TYPE) {
if (RF24Ethernet.network.frag_ptr->message_size <= UIP_BUFSIZE) {
uip_len = RF24Ethernet.network.frag_ptr->message_size;
Expand Down

0 comments on commit 7fd48a7

Please sign in to comment.