From 74895cb63c55910e63deb60b554fe5f7cc45d7e3 Mon Sep 17 00:00:00 2001 From: mch3000 <8798950+mch3000@users.noreply.github.com> Date: Wed, 29 Dec 2021 13:37:57 +1100 Subject: [PATCH] Update DFRobotAS3935LightningSensorOrdinary.ino Added "IRAM_ATTR" to ISR definition https://arduino-esp8266.readthedocs.io/en/latest/reference.html?highlight=IRAM_ATTR#digital-io --- .../DFRobotAS3935LightningSensorOrdinary.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino b/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino index 340826b..0a02231 100644 --- a/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino +++ b/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino @@ -106,7 +106,7 @@ void loop() } } //IRQ handler for AS3935 interrupts -void AS3935_ISR() +void IRAM_ATTR AS3935_ISR() { AS3935IsrTrig = 1; }