Skip to content

Commit b16c354

Browse files
committed
esp8266/machine_pin: Fix memset size for zeroing of pin_irq_is_hard.
Thanks to @robert-hh.
1 parent ebbaf7e commit b16c354

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

esp8266/machine_pin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void pin_init0(void) {
9595
ETS_GPIO_INTR_ATTACH(pin_intr_handler_iram, NULL);
9696
// disable all interrupts
9797
memset(&MP_STATE_PORT(pin_irq_handler)[0], 0, 16 * sizeof(mp_obj_t));
98-
memset(pin_irq_is_hard, 0, sizeof(pin_irq_obj));
98+
memset(pin_irq_is_hard, 0, sizeof(pin_irq_is_hard));
9999
for (int p = 0; p < 16; ++p) {
100100
GPIO_REG_WRITE(GPIO_STATUS_W1TC_ADDRESS, 1 << p);
101101
SET_TRIGGER(p, 0);

0 commit comments

Comments
 (0)