diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-12-28 22:17:49 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-12-28 22:38:29 -0500 |
commit | d028f42e99f21f9dac83f850fbf29f869597704d (patch) | |
tree | adc9da75a17b5f5136eda0f5b18f9346d06c541e /klippy/mcu.py | |
parent | 860fc3e91de9e17d869daaad08ebfcf9b07e270e (diff) | |
download | kutter-d028f42e99f21f9dac83f850fbf29f869597704d.tar.gz kutter-d028f42e99f21f9dac83f850fbf29f869597704d.tar.xz kutter-d028f42e99f21f9dac83f850fbf29f869597704d.zip |
mcu: Don't call steppersync_flush if steppersync not created
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r-- | klippy/mcu.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py index 7afea412..c9927841 100644 --- a/klippy/mcu.py +++ b/klippy/mcu.py @@ -521,6 +521,8 @@ class MCU: def send(self, cmd, minclock=0, reqclock=0, cq=None): self.serial.send(cmd, minclock, reqclock, cq=cq) def flush_moves(self, print_time): + if self._steppersync is None: + return mcu_time = print_time + self._print_start_time clock = int(mcu_time * self._mcu_freq) self.ffi_lib.steppersync_flush(self._steppersync, clock) |