Skip to content

Commit

Permalink
fix scheduled interrupt #4609 by @shimarin (#4879)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-a-v authored Jul 2, 2018
1 parent be7a732 commit d580f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp8266/core_esp8266_wiring_digital.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void ICACHE_RAM_ATTR interrupt_handler(void *arg) {
// we disable them before we call the client ISR
uint32_t savedPS = xt_rsil(15); // stop other interrupts
ArgStructure* localArg = (ArgStructure*)handler->arg;
if (localArg->interruptInfo)
if (localArg && localArg->interruptInfo)
{
localArg->interruptInfo->pin = i;
localArg->interruptInfo->value = __digitalRead(i);
Expand Down

0 comments on commit d580f40

Please sign in to comment.