mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 13:04:05 -06:00
buttons: initialize mcu buttons based on inverted state
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
e19a41d0dd
commit
0f1d42466b
2 changed files with 6 additions and 4 deletions
|
@ -49,8 +49,9 @@ class MCU_buttons:
|
|||
rest_ticks = self.mcu.seconds_to_clock(QUERY_TIME)
|
||||
self.mcu.add_config_cmd(
|
||||
"buttons_query oid=%d clock=%d"
|
||||
" rest_ticks=%d retransmit_count=%d" % (
|
||||
self.oid, clock, rest_ticks, RETRANSMIT_COUNT), is_init=True)
|
||||
" rest_ticks=%d retransmit_count=%d invert=%d" % (
|
||||
self.oid, clock, rest_ticks, RETRANSMIT_COUNT,
|
||||
self.invert), is_init=True)
|
||||
self.mcu.register_response(self.handle_buttons_state,
|
||||
"buttons_state", self.oid)
|
||||
def handle_buttons_state(self, params):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue