8000 esp32/machine_pin: Use const for size of machine_pin_irq_handler array. · peterwillcn/micropython@416707e · GitHub
[go: up one dir, main page]

Skip to content

Commit 416707e

Browse files
IhorNehrutsadpgeorge
authored andcommitted
esp32/machine_pin: Use const for size of machine_pin_irq_handler array.
1 parent 668a7bd commit 416707e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/esp32/machine_pin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,4 +732,4 @@ STATIC MP_DEFINE_CONST_OBJ_TYPE(
732732
locals_dict, &machine_pin_irq_locals_dict
733733
);
734734

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

0 commit comments

Comments
 (0)
0