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; }