File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,21 +15,21 @@ static volatile uint8_t state = STATE_IDLE;
1515
1616// this function is called when a complete packet
1717// is transmitted by the module
18- static
18+ static
1919#if defined(ESP8266) || defined(ESP32)
20- ICACHE_RAM_ATTR
20+ ICACHE_RAM_ATTR
2121#endif
22- void setFlag (void ) {
22+ void radioISR (void ) {
2323 // we sent a packet, set the flag
2424 state |= STATE_INT_READY ;
2525}
2626
2727void RadioLibWrapper::begin () {
28- _radio->setPacketReceivedAction (setFlag); // this is also SentComplete interrupt
28+ _radio->setPacketReceivedAction (radioISR); // this is also SentComplete interrupt
2929 state = STATE_IDLE ;
3030
3131 if (_board->getStartupReason () == BD_STARTUP_RX_PACKET ) { // received a LoRa packet (while in deep sleep)
32- setFlag (); // LoRa packet is already received
32+ radioISR (); // LoRa packet is already received
3333 }
3434
3535 _noise_floor = 0 ;
You can’t perform that action at this time.
0 commit comments