aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-09-13 08:59:26 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-09-19 17:25:43 -0400
commitf66244576664730f6787d1700abd750c5b2f7b16 (patch)
tree677ada7ad8ef0f1d2f59d8ee4163513ebe58a115 /klippy/chelper.py
parent008be18f41a0ff7c814edbe6f979d39ffeff6727 (diff)
downloadkutter-f66244576664730f6787d1700abd750c5b2f7b16.tar.gz
kutter-f66244576664730f6787d1700abd750c5b2f7b16.tar.xz
kutter-f66244576664730f6787d1700abd750c5b2f7b16.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper.py')
-rw-r--r--klippy/chelper.py2
1 files changed, 2 insertions, 0 deletions
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);
"""