Skip to content

Commit

Permalink
Merge pull request micropython#5011 from dhalbert/keypad-eventqueue-t…
Browse files Browse the repository at this point in the history
…ypos

Correct type name for EventQueue; EventQueue.overflowed not accessible
  • Loading branch information
dhalbert committed Jul 16, 2021
2 parents 8e0eb2f + e958757 commit 1d1b80f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions shared-bindings/keypad/EventQueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,18 @@ const mp_obj_property_t keypad_eventqueue_overflowed_obj = {
};

STATIC const mp_rom_map_elem_t keypad_eventqueue_locals_dict_table[] = {
{ MP_ROM_QSTR(MP_QSTR_clear), MP_ROM_PTR(&keypad_eventqueue_clear_obj) },
{ MP_ROM_QSTR(MP_QSTR_clear), MP_ROM_PTR(&keypad_eventqueue_clear_obj) },
{ MP_ROM_QSTR(MP_QSTR_get), MP_ROM_PTR(&keypad_eventqueue_get_obj) },
{ MP_ROM_QSTR(MP_QSTR_get_into), MP_ROM_PTR(&keypad_eventqueue_get_into_obj) },
{ MP_ROM_QSTR(MP_QSTR_get_into), MP_ROM_PTR(&keypad_eventqueue_get_into_obj) },
{ MP_ROM_QSTR(MP_QSTR_overflowed), MP_ROM_PTR(&keypad_eventqueue_overflowed_obj) },
};

STATIC MP_DEFINE_CONST_DICT(keypad_eventqueue_locals_dict, keypad_eventqueue_locals_dict_table);

const mp_obj_type_t keypad_eventqueue_type = {
{ &mp_type_type },
.flags = MP_TYPE_FLAG_EXTENDED,
.name = MP_QSTR_Keys,
.name = MP_QSTR_EventQueue,
MP_TYPE_EXTENDED_FIELDS(
.unary_op = keypad_eventqueue_unary_op,
),
Expand Down

0 comments on commit 1d1b80f

Please sign in to comment.