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