Skip to content

Commit

Permalink
Merge pull request #38 from nRF24/ESP32-Fix
Browse files Browse the repository at this point in the history
Add fix for ESP32
  • Loading branch information
TMRh20 authored Sep 27, 2023
2 parents d3ded1b + 7fd48a7 commit 3836331
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 3836331

Please sign in to comment.