From e4d52a19b81cae5c141e2b94db5843773304d5fe Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 27 Feb 2019 14:18:07 -0500 Subject: [PATCH] stepcompress: Wrap code to 80 columns Signed-off-by: Kevin O'Connor --- klippy/chelper/stepcompress.c | 9 ++++++--- 1 file 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; isc_num; i++) {