mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-03-20 17:28:37 +05:00
chore: formatting
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user