From 1ffdb9167e12e0b25339af43e9045cbf6ec5a871 Mon Sep 17 00:00:00 2001 From: discip <53649486+discip@users.noreply.github.com> Date: Sat, 31 Dec 2022 11:51:44 +0100 Subject: [PATCH 1/4] unify rate of cooldown flashing --- source/Core/Threads/OperatingModes/HomeScreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Core/Threads/OperatingModes/HomeScreen.cpp b/source/Core/Threads/OperatingModes/HomeScreen.cpp index 0f9182bdfd..6ce4116a83 100644 --- a/source/Core/Threads/OperatingModes/HomeScreen.cpp +++ b/source/Core/Threads/OperatingModes/HomeScreen.cpp @@ -186,7 +186,7 @@ void drawHomeScreen(bool buttonLockout) { // If we have a tip connected draw the temp, if not we leave it blank if (!tipDisconnectedDisplay) { // draw in the temp - if (!(getSettingValue(SettingsOptions::CoolingTempBlink) && (xTaskGetTickCount() % 260 < 160))) + if (!(getSettingValue(SettingsOptions::CoolingTempBlink) && (xTaskGetTickCount() % 1000 < 300))) gui_drawTipTemp(false, FontStyle::LARGE); // draw in the temp } else { // Draw in missing tip symbol @@ -210,4 +210,4 @@ void drawHomeScreen(bool buttonLockout) { GUIDelay(); } } -} \ No newline at end of file +} From a55493fd1aa3e92397b0b2f8f402220b20e834ae Mon Sep 17 00:00:00 2001 From: discip <53649486+discip@users.noreply.github.com> Date: Sat, 31 Dec 2022 12:11:49 +0100 Subject: [PATCH 2/4] adjusted flashing threshold --- source/Core/Threads/OperatingModes/HomeScreen.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/Core/Threads/OperatingModes/HomeScreen.cpp b/source/Core/Threads/OperatingModes/HomeScreen.cpp index 6ce4116a83..b87e24db74 100644 --- a/source/Core/Threads/OperatingModes/HomeScreen.cpp +++ b/source/Core/Threads/OperatingModes/HomeScreen.cpp @@ -164,10 +164,11 @@ void drawHomeScreen(bool buttonLockout) { gui_drawBatteryIcon(); } tipDisconnectedDisplay = false; - if (tipTemp > 55) + if (tipTemp > 55) { tempOnDisplay = true; - else if (tipTemp < 45) + } else { tempOnDisplay = false; + } if (isTipDisconnected()) { tempOnDisplay = false; tipDisconnectedDisplay = true; From 5ed93fb066088db0501e51af631288500d67176c Mon Sep 17 00:00:00 2001 From: discip <53649486+discip@users.noreply.github.com> Date: Sat, 31 Dec 2022 12:24:15 +0100 Subject: [PATCH 3/4] revert adjusted flashing threshold --- source/Core/Threads/OperatingModes/HomeScreen.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/Core/Threads/OperatingModes/HomeScreen.cpp b/source/Core/Threads/OperatingModes/HomeScreen.cpp index b87e24db74..2a64194aaf 100644 --- a/source/Core/Threads/OperatingModes/HomeScreen.cpp +++ b/source/Core/Threads/OperatingModes/HomeScreen.cpp @@ -164,11 +164,10 @@ void drawHomeScreen(bool buttonLockout) { gui_drawBatteryIcon(); } tipDisconnectedDisplay = false; - if (tipTemp > 55) { + if (tipTemp > 55) tempOnDisplay = true; - } else { + else (tipTemp < 45) tempOnDisplay = false; - } if (isTipDisconnected()) { tempOnDisplay = false; tipDisconnectedDisplay = true; From a2e2db8fa3aa083463da1bb8031f138aceefe648 Mon Sep 17 00:00:00 2001 From: discip <53649486+discip@users.noreply.github.com> Date: Sat, 31 Dec 2022 12:26:33 +0100 Subject: [PATCH 4/4] revert follow-up --- source/Core/Threads/OperatingModes/HomeScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Core/Threads/OperatingModes/HomeScreen.cpp b/source/Core/Threads/OperatingModes/HomeScreen.cpp index 2a64194aaf..6ce4116a83 100644 --- a/source/Core/Threads/OperatingModes/HomeScreen.cpp +++ b/source/Core/Threads/OperatingModes/HomeScreen.cpp @@ -166,7 +166,7 @@ void drawHomeScreen(bool buttonLockout) { tipDisconnectedDisplay = false; if (tipTemp > 55) tempOnDisplay = true; - else (tipTemp < 45) + else if (tipTemp < 45) tempOnDisplay = false; if (isTipDisconnected()) { tempOnDisplay = false;