Update DFRobotAS3935LightningSensorOrdinary.ino

Added "IRAM_ATTR" to ISR definition
https://arduino-esp8266.readthedocs.io/en/latest/reference.html?highlight=IRAM_ATTR#digital-io
pull/4/head
mch3000 3 years ago committed by GitHub
parent 02a4d53cbe
commit 74895cb63c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino

@ -106,7 +106,7 @@ void loop()
} }
} }
//IRQ handler for AS3935 interrupts //IRQ handler for AS3935 interrupts
void AS3935_ISR() void IRAM_ATTR AS3935_ISR()
{ {
AS3935IsrTrig = 1; AS3935IsrTrig = 1;
} }

Loading…
Cancel
Save