mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-08 23:46:25 -06:00
command: Wait to send ack until after processing commands
Send the ack after processing commands - this gives the host code more information on serial buffer utilization. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
528f9f7604
commit
75f8709947
5 changed files with 27 additions and 9 deletions
|
@ -72,6 +72,7 @@ void command_sendf(const struct command_encoder *ce, ...);
|
|||
int_fast8_t command_find_block(uint8_t *buf, uint_fast8_t buf_len
|
||||
, uint_fast8_t *pop_count);
|
||||
void command_dispatch(uint8_t *buf, uint_fast8_t msglen);
|
||||
void command_send_ack(void);
|
||||
int_fast8_t command_find_and_dispatch(uint8_t *buf, uint_fast8_t buf_len
|
||||
, uint_fast8_t *pop_count);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue