aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorneon12345 <[email protected]>2024-08-01 08:54:26 +0200
committerGitHub <[email protected]>2024-08-01 08:54:26 +0200
commit697b0c795d01098a526de40020fb320c82db02bb (patch)
treea7bfd9ff26e3059ccc7ae3f0c67abb46e3e4ab71
parent3d43354ea1ab748217686fda9e7adfc0257721f7 (diff)
downloadIronOS-697b0c795d01098a526de40020fb320c82db02bb.tar.gz
IronOS-697b0c795d01098a526de40020fb320c82db02bb.zip
Update Soldering.cpp
fix another logic error
-rw-r--r--source/Core/Threads/UI/logic/Soldering.cpp2
1 files changed, 1 insertions, 1 deletions
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);