mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-10 18:24:27 +05:00
fix: equitherm with BLE indoor sensor in emergency mode fixed
This commit is contained in:
@@ -68,7 +68,7 @@ board_build.ldscript = eagle.flash.4m1m.ld
|
|||||||
[esp32_defaults]
|
[esp32_defaults]
|
||||||
platform = espressif32@^6.6
|
platform = espressif32@^6.6
|
||||||
platform_packages =
|
platform_packages =
|
||||||
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32/archive/refs/tags/2.0.15.zip
|
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32/archive/refs/tags/2.0.15.zip
|
||||||
board_build.partitions = esp32_partitions.csv
|
board_build.partitions = esp32_partitions.csv
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${env.lib_deps}
|
${env.lib_deps}
|
||||||
|
|||||||
@@ -192,8 +192,15 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (vars.states.emergency) {
|
if (vars.states.emergency) {
|
||||||
etRegulator.Kt = 0;
|
if (settings.sensors.indoor.type == SensorType::MANUAL) {
|
||||||
etRegulator.indoorTemp = 0;
|
etRegulator.Kt = 0;
|
||||||
|
etRegulator.indoorTemp = 0;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
etRegulator.Kt = settings.equitherm.t_factor;
|
||||||
|
etRegulator.indoorTemp = indoorTemp;
|
||||||
|
}
|
||||||
|
|
||||||
etRegulator.outdoorTemp = outdoorTemp;
|
etRegulator.outdoorTemp = outdoorTemp;
|
||||||
|
|
||||||
} else if (settings.pid.enable) {
|
} else if (settings.pid.enable) {
|
||||||
|
|||||||
Reference in New Issue
Block a user