From 909191307427c6561e820e80e8668db671f1414c Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Tue, 19 Oct 2021 19:04:10 -0400 Subject: [PATCH] fix hash() for Event --- shared-bindings/keypad/Event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-bindings/keypad/Event.c b/shared-bindings/keypad/Event.c index 1f79ae4078..fda44d3521 100644 --- a/shared-bindings/keypad/Event.c +++ b/shared-bindings/keypad/Event.c @@ -171,7 +171,7 @@ STATIC mp_obj_t keypad_event_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_ob //| ... //| STATIC mp_obj_t keypad_event_unary_op(mp_unary_op_t op, mp_obj_t self_in) { - keypad_event_obj_t *self = MP_OBJ_TO_PTR(self); + keypad_event_obj_t *self = MP_OBJ_TO_PTR(self_in); switch (op) { case MP_UNARY_OP_HASH: { const mp_int_t key_number = common_hal_keypad_event_get_key_number(self);