mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-21 05:37:54 -06:00
command: Encode MESSAGE_MIN in command_parser->max_size
Add the message minimum into the stored constant so it does not need to be added at run-time. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
1c3cbe9456
commit
1ae78d08e9
2 changed files with 6 additions and 4 deletions
|
@ -192,7 +192,7 @@ _sendf(const struct command_encoder *ce, ...)
|
|||
return;
|
||||
writeb(&in_sendf, 1);
|
||||
|
||||
uint8_t buf_len = READP(ce->max_size) + MESSAGE_MIN;
|
||||
uint8_t buf_len = READP(ce->max_size);
|
||||
char *buf = console_get_output(buf_len);
|
||||
if (!buf)
|
||||
goto done;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue