mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-23 14:53:07 +05:00
fix: correct threshold names across firmware and portal
Use threshold_time for the emergency-mode delay in settings, JSON, portal forms and all five translations. Convert legacy tresholdTime backup fields to threshold_time. Correct the NTC voltage threshold macro names while keeping their limits.
This commit is contained in:
1 parent
d6e1ccb22b
commit
eb5f6c9b46
13 files changed
+20
-21
No files matched your search
+1
-1
@@ -106,7 +106,7 @@ struct MqttSettings {
|
||||
|
||||
struct EmergencySettings {
|
||||
float target = DEFAULT_HEATING_TARGET_TEMP;
|
||||
unsigned short tresholdTime = 120;
|
||||
unsigned short thresholdTime = 120;
|
||||
};
|
||||
|
||||
struct HeatingSettings {
|
||||
|
||||
+2
-2
@@ -28,8 +28,8 @@
|
||||
#define DEFAULT_NTC_REF_RESISTANCE 10000.0f
|
||||
#define DEFAULT_NTC_BETA_FACTOR 3950.0f
|
||||
#define DEFAULT_NTC_VREF 3300.0f
|
||||
#define DEFAULT_NTC_VLOW_TRESHOLD 25.0f
|
||||
#define DEFAULT_NTC_VHIGH_TRESHOLD 3298.0f
|
||||
#define DEFAULT_NTC_VLOW_THRESHOLD 25.0f
|
||||
#define DEFAULT_NTC_VHIGH_THRESHOLD 3298.0f
|
||||
|
||||
#ifndef BUILD_VERSION
|
||||
#define BUILD_VERSION "0.0.0"
|
||||
|
||||
@@ -206,7 +206,6 @@ inline const char S_THRESHOLD_LOW[] = "threshold_low";
|
||||
inline const char S_THRESHOLD_TIME[] = "threshold_time";
|
||||
inline const char S_TIMEZONE[] = "timezone";
|
||||
inline const char S_TOTAL[] = "total";
|
||||
inline const char S_TRESHOLD_TIME[] = "treshold_time";
|
||||
inline const char S_TRUE[] = "true";
|
||||
inline const char S_TURBO[] = "turbo";
|
||||
inline const char S_TURBO_FACTOR[] = "turbo_factor";
|
||||
|
||||
Reference in new issue
Block a user