Update DFRobotAS3935LightningSensorOrdinary.ino

pull/4/head
mch3000 3 years ago committed by GitHub
parent a870e23d53
commit 3d2ec54322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino

@ -106,7 +106,11 @@ void loop()
} }
} }
//IRQ handler for AS3935 interrupts //IRQ handler for AS3935 interrupts
#if defined(ESP32) || defined(ESP8266)
void IRAM_ATTR AS3935_ISR() void IRAM_ATTR AS3935_ISR()
#else
void AS3935_ISR()
#endif
{ {
AS3935IsrTrig = 1; AS3935IsrTrig = 1;
} }

Loading…
Cancel
Save