diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-02-27 14:18:07 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-02-27 14:20:15 -0500 |
commit | e4d52a19b81cae5c141e2b94db5843773304d5fe (patch) | |
tree | 66db0554c5a7fe72bb8bf4535160942b0d64c001 /klippy | |
parent | 7c50bd89cffaa6899c963305d5aea8418b23f51b (diff) | |
download | kutter-e4d52a19b81cae5c141e2b94db5843773304d5fe.tar.gz kutter-e4d52a19b81cae5c141e2b94db5843773304d5fe.tar.xz kutter-e4d52a19b81cae5c141e2b94db5843773304d5fe.zip |
stepcompress: Wrap code to 80 columns
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r-- | klippy/chelper/stepcompress.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/klippy/chelper/stepcompress.c b/klippy/chelper/stepcompress.c index 6431793b..fa6eb957 100644 --- a/klippy/chelper/stepcompress.c +++ b/klippy/chelper/stepcompress.c @@ -300,7 +300,8 @@ static int stepcompress_flush_far(struct stepcompress *sc, uint64_t abs_step_clock) { uint32_t msg[5] = { - sc->queue_step_msgid, sc->oid, abs_step_clock - sc->last_step_clock, 1, 0 + sc->queue_step_msgid, sc->oid, abs_step_clock - sc->last_step_clock, + 1, 0 }; struct queue_message *qm = message_alloc_and_encode(msg, 5); qm->min_clock = sc->last_step_clock; @@ -438,7 +439,8 @@ queue_append_slow(struct stepcompress *sc, double rel_sc) if (sc->queue_next - sc->queue_pos > 65535 + 2000) { // No point in keeping more than 64K steps in memory - uint32_t flush = *(sc->queue_next-65535) - (uint32_t)sc->last_step_clock; + uint32_t flush = (*(sc->queue_next-65535) + - (uint32_t)sc->last_step_clock); int ret = stepcompress_flush(sc, sc->last_step_clock + flush); if (ret) return ret; @@ -566,7 +568,8 @@ steppersync_free(struct steppersync *ss) // Set the conversion rate of 'print_time' to mcu clock void __visible -steppersync_set_time(struct steppersync *ss, double time_offset, double mcu_freq) +steppersync_set_time(struct steppersync *ss, double time_offset + , double mcu_freq) { int i; for (i=0; i<ss->sc_num; i++) { |