aboutsummaryrefslogtreecommitdiffhomepage
path: root/source
diff options
context:
space:
mode:
authordiscip <[email protected]>2022-02-04 23:43:13 +0100
committerGitHub <[email protected]>2022-02-04 23:43:13 +0100
commiteba52bfd5b93498558c9af921607f74e805106a0 (patch)
tree293eb36a3fca0c5e98ff0a1425b3217a8dbd9ea0 /source
parentc74bc36178441d1d77127aadd5510eebf7ee8eba (diff)
downloadIronOS-eba52bfd5b93498558c9af921607f74e805106a0.tar.gz
IronOS-eba52bfd5b93498558c9af921607f74e805106a0.zip
removing HALL from unsupported devices _2
Diffstat (limited to 'source')
-rw-r--r--source/Core/Threads/GUIThread.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/source/Core/Threads/GUIThread.cpp b/source/Core/Threads/GUIThread.cpp
index b07e93bd..84b4c7bd 100644
--- a/source/Core/Threads/GUIThread.cpp
+++ b/source/Core/Threads/GUIThread.cpp
@@ -782,19 +782,17 @@ void showDebugMenu(void) {
// Max deg C limit
OLED::printNumber(TipThermoModel::getTipMaxInC(), 3, FontStyle::SMALL);
break;
+#ifdef HALL_SENSOR
case 13:
// Print raw hall effect value if availabe, none if hall effect disabled.
-#ifdef HALL_SENSOR
- {
- int16_t hallEffectStrength = getRawHallEffect();
- if (hallEffectStrength < 0)
- hallEffectStrength = -hallEffectStrength;
- OLED::printNumber(hallEffectStrength, 6, FontStyle::SMALL);
- }
-#else
- OLED::print(translatedString(Tr->OffString), FontStyle::SMALL);
+ {
+ int16_t hallEffectStrength = getRawHallEffect();
+ if (hallEffectStrength < 0)
+ hallEffectStrength = -hallEffectStrength;
+ OLED::printNumber(hallEffectStrength, 6, FontStyle::SMALL);
+ }
+ break;
#endif
- break;
default:
break;
}
@@ -805,7 +803,11 @@ void showDebugMenu(void) {
return;
else if (b == BUTTON_F_SHORT) {
screen++;
+#ifdef HALL_SENSOR
screen = screen % 14;
+#else
+ screen = screen % 13;
+#endif
}
GUIDelay();
}