From b16c35486fa45b7828248075a447690701b1399d Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 21 Mar 2017 15:13:15 +1100 Subject: [PATCH] esp8266/machine_pin: Fix memset size for zeroing of pin_irq_is_hard. Thanks to @robert-hh. --- esp8266/machine_pin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp8266/machine_pin.c b/esp8266/machine_pin.c index f2e334b1ae..d602bd69f9 100644 --- a/esp8266/machine_pin.c +++ b/esp8266/machine_pin.c @@ -95,7 +95,7 @@ void pin_init0(void) { ETS_GPIO_INTR_ATTACH(pin_intr_handler_iram, NULL); // disable all interrupts memset(&MP_STATE_PORT(pin_irq_handler)[0], 0, 16 * sizeof(mp_obj_t)); - memset(pin_irq_is_hard, 0, sizeof(pin_irq_obj)); + memset(pin_irq_is_hard, 0, sizeof(pin_irq_is_hard)); for (int p = 0; p < 16; ++p) { GPIO_REG_WRITE(GPIO_STATUS_W1TC_ADDRESS, 1 << p); SET_TRIGGER(p, 0);