Skip to content

Commit 28a58c3

Browse files
authored
Merge pull request #5486 from dhalbert/keypad-event-hash
fix hash() for Event
2 parents 9220e48 + 9091913 commit 28a58c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/keypad/Event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ STATIC mp_obj_t keypad_event_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_ob
171171
//| ...
172172
//|
173173
STATIC mp_obj_t keypad_event_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
174-
keypad_event_obj_t *self = MP_OBJ_TO_PTR(self);
174+
keypad_event_obj_t *self = MP_OBJ_TO_PTR(self_in);
175175
switch (op) {
176176
case MP_UNARY_OP_HASH: {
177177
const mp_int_t key_number = common_hal_keypad_event_get_key_number(self);

0 commit comments

Comments
 (0)