Merge pull request #4 from mch3000/master

ISR IRAM_ATTR
pull/9/head
唐杰 1 year ago committed by GitHub
commit f96bd57ad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      examples/DFRobotAS3935LightningSensorDetailed/DFRobotAS3935LightningSensorDetailed.ino
  2. 4
      examples/DFRobotAS3935LightningSensorOrdinary/DFRobotAS3935LightningSensorOrdinary.ino

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

@ -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()
#else
void AS3935_ISR() void AS3935_ISR()
#endif
{ {
AS3935IsrTrig = 1; AS3935IsrTrig = 1;
} }

Loading…
Cancel
Save