Skip to content

Commit d580f40

Browse files
authored
fix scheduled interrupt #4609 by @shimarin (#4879)
1 parent be7a732 commit d580f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/core_esp8266_wiring_digital.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ void ICACHE_RAM_ATTR interrupt_handler(void *arg) {
147147
// we disable them before we call the client ISR
148148
uint32_t savedPS = xt_rsil(15); // stop other interrupts
149149
ArgStructure* localArg = (ArgStructure*)handler->arg;
150-
if (localArg->interruptInfo)
150+
if (localArg && localArg->interruptInfo)
151151
{
152152
localArg->interruptInfo->pin = i;
153153
localArg->interruptInfo->value = __digitalRead(i);

0 commit comments

Comments
 (0)