mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-18 04:08:04 -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
|
@ -102,7 +102,7 @@ command_buttons_query(uint32_t *args)
|
|||
sched_del_timer(&b->time);
|
||||
b->time.waketime = args[1];
|
||||
b->rest_ticks = args[2];
|
||||
b->pressed = b->last_pressed = 0;
|
||||
b->pressed = b->last_pressed = args[4];
|
||||
b->ack_count = b->report_count = 0;
|
||||
b->retransmit_state = BF_ACKED;
|
||||
b->retransmit_count = args[3];
|
||||
|
@ -113,7 +113,8 @@ command_buttons_query(uint32_t *args)
|
|||
sched_add_timer(&b->time);
|
||||
}
|
||||
DECL_COMMAND(command_buttons_query,
|
||||
"buttons_query oid=%c clock=%u rest_ticks=%u retransmit_count=%c");
|
||||
"buttons_query oid=%c clock=%u rest_ticks=%u retransmit_count=%c"
|
||||
" invert=%c");
|
||||
|
||||
void
|
||||
command_buttons_ack(uint32_t *args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue