aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/serialhdl.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-02-15 19:18:51 -0500
committerKevin O'Connor <kevin@koconnor.net>2021-06-09 18:58:35 -0400
commit620f77ddb79de683befb458f43c30435759ac0e2 (patch)
treeced439210a3e5885a4c9eaa35b1008586811730b /klippy/serialhdl.py
parentf938caa0d23f91c6fbf416334441e64e6739bbc7 (diff)
downloadkutter-620f77ddb79de683befb458f43c30435759ac0e2.tar.gz
kutter-620f77ddb79de683befb458f43c30435759ac0e2.tar.xz
kutter-620f77ddb79de683befb458f43c30435759ac0e2.zip
msgblock: Add clock estimation helper functions
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/serialhdl.py')
-rw-r--r--klippy/serialhdl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/serialhdl.py b/klippy/serialhdl.py
index 59482a41..147bb624 100644
--- a/klippy/serialhdl.py
+++ b/klippy/serialhdl.py
@@ -200,9 +200,9 @@ class SerialReader:
self.serialqueue = self.ffi_main.gc(
self.ffi_lib.serialqueue_alloc(self.serial_dev.fileno(), 'f', 0),
self.ffi_lib.serialqueue_free)
- def set_clock_est(self, freq, last_time, last_clock):
+ def set_clock_est(self, freq, conv_time, conv_clock, last_clock):
self.ffi_lib.serialqueue_set_clock_est(
- self.serialqueue, freq, last_time, last_clock)
+ self.serialqueue, freq, conv_time, conv_clock, last_clock)
def disconnect(self):
if self.serialqueue is not None:
self.ffi_lib.serialqueue_exit(self.serialqueue)