Skip to content

Commit

Permalink
esp32/machine_pin: Use const for size of machine_pin_irq_handler array.
Browse files Browse the repository at this point in the history
  • Loading branch information
IhorNehrutsa authored and dpgeorge committed Mar 13, 2023
1 parent 668a7bd commit 416707e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/esp32/machine_pin.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,4 +732,4 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
locals_dict, &machine_pin_irq_locals_dict
);

MP_REGISTER_ROOT_POINTER(mp_obj_t machine_pin_irq_handler[49]); // 49 is the biggest of GPIO_NUM_MAX's
MP_REGISTER_ROOT_POINTER(mp_obj_t machine_pin_irq_handler[GPIO_PIN_COUNT]);

0 comments on commit 416707e

Please sign in to comment.