Skip to content

Commit 35a0131

Browse files
committed
toolhead: Remove extra batching time added in _check_pause()
The code currently adds an additional 100ms to BUFFER_TIME_HIGH in _check_pause() to reduce the number of calls to _check_pause(). However, LOOKAHEAD_FLUSH_TIME should already provide sufficient batching so adding more is not necessary. This change should hopefully make configuring BUFFER_TIME_HIGH a little more transparent. Signed-off-by: Kevin O'Connor <[email protected]>
1 parent f6f4d5e commit 35a0131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

klippy/toolhead.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def _check_pause(self):
342342
buffer_time = self.print_time - est_print_time
343343
if not self.special_queuing_state:
344344
# In main state - defer pause checking until needed
345-
self.need_check_pause = est_print_time + BUFFER_TIME_HIGH + 0.100
345+
self.need_check_pause = est_print_time + BUFFER_TIME_HIGH
346346
def _priming_handler(self, eventtime):
347347
self.reactor.unregister_timer(self.priming_timer)
348348
self.priming_timer = None

0 commit comments

Comments
 (0)