From 3d2ec5432203a90b37570ae66d6ba56066ad6358 Mon Sep 17 00:00:00 2001 From: mch3000 <8798950+mch3000@users.noreply.github.com> Date: Wed, 29 Dec 2021 13:47:42 +1100 Subject: [PATCH] Update DFRobotAS3935LightningSensorOrdinary.ino --- .../DFRobotAS3935LightningSensorOrdinary.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino b/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino index 0a02231..69ae375 100644 --- a/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino +++ b/examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino @@ -106,7 +106,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; }