Skip to content

Commit 148f696

Browse files
committed
RadioLibWrappers.cpp: Rename ISR and apply clang-format fixes
The ISR will be used for other purposes than just setting a flag, rename it accordingly. Signed-off-by: Frieder Schrempf <frieder@fris.de>
1 parent 5d37a37 commit 148f696

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/helpers/radiolib/RadioLibWrappers.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

2727
void 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;

0 commit comments

Comments
 (0)