diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2024-01-17 11:22:16 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2024-01-17 11:28:42 -0500 |
commit | 7a74888b43a7e640a32fd18ae69d9dbdeaf55719 (patch) | |
tree | f421f5b6645b869827cee3120f732b4950410584 /klippy/extras/pwm_tool.py | |
parent | 3d3b87f97fc91d93ae4198b36198262207e1202b (diff) | |
download | kutter-7a74888b43a7e640a32fd18ae69d9dbdeaf55719.tar.gz kutter-7a74888b43a7e640a32fd18ae69d9dbdeaf55719.tar.xz kutter-7a74888b43a7e640a32fd18ae69d9dbdeaf55719.zip |
toolhead: Extend flushing slightly past required time
There is no harm in enabling flushing for a little longer than
necessary. In contrast, a slight rounding issue causing a message to
not get flushed properly could result in an error. So, extend the
flushing time slightly to avoid potential issues.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/pwm_tool.py')
-rw-r--r-- | klippy/extras/pwm_tool.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/klippy/extras/pwm_tool.py b/klippy/extras/pwm_tool.py index 5fc09eab..704266a8 100644 --- a/klippy/extras/pwm_tool.py +++ b/klippy/extras/pwm_tool.py @@ -6,7 +6,6 @@ import chelper MAX_SCHEDULE_TIME = 5.0 -CLOCK_SYNC_EXTRA_TIME = 0.050 class error(Exception): pass @@ -118,8 +117,7 @@ class MCU_queued_pwm: # Continue flushing to resend time wakeclock += self._duration_ticks wake_print_time = self._mcu.clock_to_print_time(wakeclock) - self._toolhead.note_kinematic_activity(wake_print_time - + CLOCK_SYNC_EXTRA_TIME) + self._toolhead.note_kinematic_activity(wake_print_time) def set_pwm(self, print_time, value): clock = self._mcu.print_time_to_clock(print_time) if self._invert: |