We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6ef187 + 595ad6b commit 7d4f84cCopy full SHA for 7d4f84c
library.properties
@@ -1,5 +1,5 @@
1
name=STM32duino S2-LP
2
-version=1.1.1
+version=1.1.2
3
author=SRA
4
maintainer=stm32duino
5
sentence=This library includes drivers for ST S2-LP sub-1GHz transceiver.
src/S2LP.cpp
@@ -229,7 +229,7 @@ void S2LP::begin(void)
229
/* Go to RX state */
230
S2LPCmdStrobeCommand(CMD_RX);
231
232
- enableS2LPIrq();
+ attachInterrupt(irq_pin, irq_handler, FALLING);
233
}
234
235
/**
@@ -569,7 +569,10 @@ void S2LP::S2LPIrqHandler(void)
569
*/
570
void S2LP::disableS2LPIrq(void)
571
{
572
- detachInterrupt(irq_pin);
+ if(nr_of_irq_disabled == 0)
573
+ {
574
+ detachInterrupt(irq_pin);
575
+ }
576
nr_of_irq_disabled++;
577
578
0 commit comments