mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-25 07:43:04 +05:00
fix: harden configuration and runtime state handling
This commit is contained in:
1 parent
f3f8ce5861
commit
65df4b7f5a
9 files changed
+372
-275
No files matched your search
+3
-2
@@ -207,9 +207,10 @@ static Task regulatorTask("Regulator", [](void*) {
|
||||
turbo();
|
||||
hysteresis();
|
||||
|
||||
vars.master.heating.targetTemp = settings.heating.target;
|
||||
|
||||
const float setpointTemp = getHeatingSetpointTemp();
|
||||
vars.master.heating.targetTemp = settings.opentherm.options.nativeOTC
|
||||
? setpointTemp
|
||||
: settings.heating.target;
|
||||
vars.master.heating.setpointTemp = roundf(constrain(
|
||||
setpointTemp,
|
||||
getHeatingMinSetpointTemp(),
|
||||
|
||||
Reference in new issue
Block a user