aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/buttons.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/extras/buttons.py')
-rw-r--r--klippy/extras/buttons.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/buttons.py b/klippy/extras/buttons.py
index dfb552b5..aaf999ae 100644
--- a/klippy/extras/buttons.py
+++ b/klippy/extras/buttons.py
@@ -51,8 +51,8 @@ class MCU_buttons:
"buttons_query oid=%d clock=%d"
" rest_ticks=%d retransmit_count=%d" % (
self.oid, clock, rest_ticks, RETRANSMIT_COUNT), is_init=True)
- self.mcu.register_msg(
- self.handle_buttons_state, "buttons_state", self.oid)
+ self.mcu.register_response(self.handle_buttons_state,
+ "buttons_state", self.oid)
def handle_buttons_state(self, params):
# Expand the message ack_count from 8-bit
ack_count = self.ack_count