aboutsummaryrefslogtreecommitdiffhomepage
path: root/source
diff options
context:
space:
mode:
authorBen V. Brown <[email protected]>2023-07-28 18:46:00 +1000
committerBen V. Brown <[email protected]>2023-07-28 18:46:00 +1000
commitea1906e499543b5c36e0da194e09ca8f89062764 (patch)
treed106acceb465b3d6e9dedb41dbbdb4c07e45b737 /source
parent9a3fef92c3a8482aa66204ba432b964716e4cfe3 (diff)
downloadIronOS-ea1906e499543b5c36e0da194e09ca8f89062764.tar.gz
IronOS-ea1906e499543b5c36e0da194e09ca8f89062764.zip
Enforce temp unit to C if F not in build
Closes #1741
Diffstat (limited to 'source')
-rw-r--r--source/Core/Src/Settings.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/Core/Src/Settings.cpp b/source/Core/Src/Settings.cpp
index db6ec0a0..5196f4a4 100644
--- a/source/Core/Src/Settings.cpp
+++ b/source/Core/Src/Settings.cpp
@@ -11,6 +11,7 @@
#include "Settings.h"
#include "BSP.h"
#include "Setup.h"
+#include "Translation.h"
#include "configuration.h"
#include <string.h> // for memset
bool sanitiseSettings();
@@ -65,7 +66,7 @@ static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOp
{0, 1, 1, COOLING_TEMP_BLINK}, // CoolingTempBlink
{0, 1, 1, DETAILED_IDLE}, // DetailedIDLE
{0, 1, 1, DETAILED_SOLDERING}, // DetailedSoldering
- {0, 1, 1, TEMPERATURE_INF}, // TemperatureInF
+ {0, (uint16_t)(HasFahrenheit ? 1 : 0), 1, TEMPERATURE_INF}, // TemperatureInF
{0, 1, 1, DESCRIPTION_SCROLL_SPEED}, // DescriptionScrollSpeed
{0, 2, 1, LOCKING_MODE}, // LockingMode
{0, 99, 1, POWER_PULSE_DEFAULT}, // KeepAwakePulse