From f66244576664730f6787d1700abd750c5b2f7b16 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 13 Sep 2017 08:59:26 -0400 Subject: stepcompress: Implement print time to clock conversion in C code Implement the conversion from print_time to the local mcu's clock within the C code. This simplifies the python code. Signed-off-by: Kevin O'Connor --- klippy/chelper.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'klippy/chelper.py') diff --git a/klippy/chelper.py b/klippy/chelper.py index b7dce015..1f09e72d 100644 --- a/klippy/chelper.py +++ b/klippy/chelper.py @@ -36,6 +36,8 @@ defs_stepcompress = """ struct steppersync *steppersync_alloc(struct serialqueue *sq , struct stepcompress **sc_list, int sc_num, int move_num); void steppersync_free(struct steppersync *ss); + void steppersync_set_time(struct steppersync *ss + , double time_offset, double mcu_freq); int steppersync_flush(struct steppersync *ss, uint64_t move_clock); """ -- cgit v1.2.3-70-g09d2