aboutsummaryrefslogtreecommitdiffhomepage
path: root/source
diff options
context:
space:
mode:
authorneon12345 <[email protected]>2024-08-01 08:39:14 +0200
committerGitHub <[email protected]>2024-08-01 08:39:14 +0200
commit3d43354ea1ab748217686fda9e7adfc0257721f7 (patch)
tree1564c023726371f7ba4494a0e13b8aff5e47449a /source
parentea2deb0e129323649b66712ef2045f3c8458a648 (diff)
downloadIronOS-3d43354ea1ab748217686fda9e7adfc0257721f7.tar.gz
IronOS-3d43354ea1ab748217686fda9e7adfc0257721f7.zip
Update Soldering.cpp
fix timer logic
Diffstat (limited to 'source')
-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 f4ff487e..35e5e979 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 ((cxt->scratch_state.state1 >> 2) < xTaskGetTickCount()) {
+ if ((uint16_t)(xTaskGetTickCount() << 2) - (cxt->scratch_state.state1 & ~3) > TICKS_SECOND) {
cxt->scratch_state.state1 &= 3;
} else {
warnUser(translatedString(Tr->WarningKeysLockedString), buttons);