1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

fix scheduled interrupt #4609 by @shimarin (#4879)

This commit is contained in:
david gauchard 2018-07-02 23:33:55 +02:00 committed by GitHub
parent be7a732b9d
commit d580f40e44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@ void ICACHE_RAM_ATTR interrupt_handler(void *arg) {
// we disable them before we call the client ISR // we disable them before we call the client ISR
uint32_t savedPS = xt_rsil(15); // stop other interrupts uint32_t savedPS = xt_rsil(15); // stop other interrupts
ArgStructure* localArg = (ArgStructure*)handler->arg; ArgStructure* localArg = (ArgStructure*)handler->arg;
if (localArg->interruptInfo) if (localArg && localArg->interruptInfo)
{ {
localArg->interruptInfo->pin = i; localArg->interruptInfo->pin = i;
localArg->interruptInfo->value = __digitalRead(i); localArg->interruptInfo->value = __digitalRead(i);