Skip to content

Commit a44c669

Browse files
committed
fix scheduled interrupt esp8266#4609 by @shimarin
1 parent 1eb0645 commit a44c669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/core_esp8266_wiring_digital.c

Lines changed: 1 addition & 1 deletion
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)