chore: formatting

This commit is contained in:
Yurii
2026-02-12 13:07:51 +03:00
parent 5719d5badf
commit c0ff34f2e0
2 changed files with 5 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ lib_deps = ESP32Async/AsyncTCP@^3.4.10
pstolarz/OneWireNg@^0.14.1 pstolarz/OneWireNg@^0.14.1
;milesburton/DallasTemperature@^4.0.5 ;milesburton/DallasTemperature@^4.0.5
https://github.com/Laxilef/Arduino-Temperature-Control-Library#fix_85c https://github.com/Laxilef/Arduino-Temperature-Control-Library#fix_85c
https://github.com/Laxilef/esp32DHT#idf5 https://github.com/Laxilef/esp32DHT#idf5
;laxilef/TinyLogger@^1.1.1 ;laxilef/TinyLogger@^1.1.1
https://github.com/Laxilef/TinyLogger#custom_handlers https://github.com/Laxilef/TinyLogger#custom_handlers
lib_ignore = OneWire lib_ignore = OneWire

View File

@@ -19,7 +19,7 @@ protected:
const char* getTaskName() override { const char* getTaskName() override {
return "Regulator"; return "Regulator";
} }
/*BaseType_t getTaskCore() override { /*BaseType_t getTaskCore() override {
return 1; return 1;
}*/ }*/
@@ -28,7 +28,7 @@ protected:
return 4; return 4;
} }
#endif #endif
void loop() { void loop() {
if (vars.states.restarting || vars.states.upgrading) { if (vars.states.restarting || vars.states.upgrading) {
return; return;
@@ -155,7 +155,7 @@ protected:
); );
float etResult = settings.heating.target + settings.equitherm.shift + sf * ( float etResult = settings.heating.target + settings.equitherm.shift + sf * (
tempDelta >= 0 tempDelta >= 0
? pow(tempDelta, 1.0f / settings.equitherm.exponent) ? pow(tempDelta, 1.0f / settings.equitherm.exponent)
: -(pow(-(tempDelta), 1.0f / settings.equitherm.exponent)) : -(pow(-(tempDelta), 1.0f / settings.equitherm.exponent))
); );
@@ -204,7 +204,7 @@ protected:
}*/ }*/
float error = pidRegulator.setpoint - pidRegulator.input; float error = pidRegulator.setpoint - pidRegulator.input;
bool hasDeadband = settings.pid.deadband.enabled bool hasDeadband = settings.pid.deadband.enabled
&& (error > -(settings.pid.deadband.thresholdHigh)) && (error > -(settings.pid.deadband.thresholdHigh))
&& (error < settings.pid.deadband.thresholdLow); && (error < settings.pid.deadband.thresholdLow);