diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-02-04 16:33:03 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-02-18 15:21:32 -0500 |
commit | 81da5379d406236b8284921d34f23e877464db63 (patch) | |
tree | 5d48ff2fa546f1693f943faaa89fe61b9e829e76 /klippy/chelper/stepcompress.h | |
parent | efa497dfd86bc64b3f9b991f6fc1a10ff23f7596 (diff) | |
download | kutter-81da5379d406236b8284921d34f23e877464db63.tar.gz kutter-81da5379d406236b8284921d34f23e877464db63.tar.xz kutter-81da5379d406236b8284921d34f23e877464db63.zip |
buildcommands: Extend number of available mcu messages from 96 to 128
Some internal code treats the message ids as encoded "variable length
quantities", while other internal code assumes the message id is
always one byte long. Continue using this scheme, but convert the VLQ
users to use the name "msgtag" while the 1-byte users use "msgid".
Increase the number of available msgids from 96 to 127 - the higher
values get encoded as negative "msgtags".
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper/stepcompress.h')
-rw-r--r-- | klippy/chelper/stepcompress.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/chelper/stepcompress.h b/klippy/chelper/stepcompress.h index 3462b3f8..2d1534c1 100644 --- a/klippy/chelper/stepcompress.h +++ b/klippy/chelper/stepcompress.h @@ -7,8 +7,8 @@ struct stepcompress *stepcompress_alloc(uint32_t oid); void stepcompress_fill(struct stepcompress *sc, uint32_t max_error - , uint32_t invert_sdir, uint32_t queue_step_msgid - , uint32_t set_next_step_dir_msgid); + , uint32_t invert_sdir, int32_t queue_step_msgtag + , int32_t set_next_step_dir_msgtag); void stepcompress_free(struct stepcompress *sc); uint32_t stepcompress_get_oid(struct stepcompress *sc); int stepcompress_get_step_dir(struct stepcompress *sc); |