From 2efe5ddfd1742a91cc6f653d20e9c3d606d797f0 Mon Sep 17 00:00:00 2001 From: Jeff Kletsky Date: Thu, 8 Apr 2021 13:06:08 -0700 Subject: [PATCH] scale: Remove redundant scale-timer reset from vars.tcl Scales that have a timer and have ::device::scale::use_timer True will have their timer reset on entering a flow state, such as Espresso. Code in vars.tcl would also call ::scale_timer_reset on resetting the espresso timers, typically at the start of flow. At the start of flow, a timer-start command is sent. This often immediately after the timer-clear command from vars.tcl. There is some evidence that scale hardware may not gracefully handle tight timing. Rather than introduce a delay, remove the redundant call in vars.tcl Signed-Off-By: Jeff Kletsky --- de1plus/vars.tcl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/de1plus/vars.tcl b/de1plus/vars.tcl index fdcb45be..0102d29d 100644 --- a/de1plus/vars.tcl +++ b/de1plus/vars.tcl @@ -351,10 +351,6 @@ proc clear_espresso_timers {} { set ::timers(espresso_pour_stop) 0 set ::timer_running 0 - - catch { - scale_timer_reset - } } clear_espresso_timers