We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be7a732 commit d580f40Copy full SHA for d580f40
cores/esp8266/core_esp8266_wiring_digital.c
@@ -147,7 +147,7 @@ void ICACHE_RAM_ATTR interrupt_handler(void *arg) {
147
// we disable them before we call the client ISR
148
uint32_t savedPS = xt_rsil(15); // stop other interrupts
149
ArgStructure* localArg = (ArgStructure*)handler->arg;
150
- if (localArg->interruptInfo)
+ if (localArg && localArg->interruptInfo)
151
{
152
localArg->interruptInfo->pin = i;
153
localArg->interruptInfo->value = __digitalRead(i);
0 commit comments