From a870e23d53605c658c4260589aab2c7d010e36fa Mon Sep 17 00:00:00 2001 From: mch3000 <8798950+mch3000@users.noreply.github.com> Date: Wed, 29 Dec 2021 13:42:43 +1100 Subject: [PATCH] Update DFRobotAS3935LightningSensorDetailed.ino --- .../DFRobotAS3935LightningSensorDetailed.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/DFRobotAS3935LightningSensorDetailed/DFRobotAS3935LightningSensorDetailed.ino b/examples/DFRobotAS3935LightningSensorDetailed/DFRobotAS3935LightningSensorDetailed.ino index c3d7f84..4ebb707 100644 --- a/examples/DFRobotAS3935LightningSensorDetailed/DFRobotAS3935LightningSensorDetailed.ino +++ b/examples/DFRobotAS3935LightningSensorDetailed/DFRobotAS3935LightningSensorDetailed.ino @@ -128,7 +128,11 @@ void loop() } //IRQ handler for AS3935 interrupts +#if defined(ESP32) || defined(ESP8266) void IRAM_ATTR AS3935_ISR() +#else +void AS3935_ISR() +#endif { AS3935IsrTrig = 1; }