From 697b0c795d01098a526de40020fb320c82db02bb Mon Sep 17 00:00:00 2001 From: neon12345 <784389+neon12345@users.noreply.github.com> Date: Thu, 1 Aug 2024 08:54:26 +0200 Subject: [PATCH] Update Soldering.cpp fix another logic error --- source/Core/Threads/UI/logic/Soldering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Core/Threads/UI/logic/Soldering.cpp b/source/Core/Threads/UI/logic/Soldering.cpp index 35e5e979..e7559e73 100644 --- a/source/Core/Threads/UI/logic/Soldering.cpp +++ b/source/Core/Threads/UI/logic/Soldering.cpp @@ -11,7 +11,7 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt) // Buttons are currently locked if (cxt->scratch_state.state1 > 3) { // show locked until timer is up - if ((uint16_t)(xTaskGetTickCount() << 2) - (cxt->scratch_state.state1 & ~3) > TICKS_SECOND) { + if ((uint16_t)(xTaskGetTickCount() << 2) - (cxt->scratch_state.state1 & ~3) > TICKS_SECOND << 2) { cxt->scratch_state.state1 &= 3; } else { warnUser(translatedString(Tr->WarningKeysLockedString), buttons);