fixed heap size

fixed core numbers for esp32 tasks
compatible with lolin_c3_mini
delete task main loop() for esp32
This commit is contained in:
Yurii
2023-11-12 20:54:02 +03:00
parent eedbd7b80a
commit b5760eb314
9 changed files with 80 additions and 35 deletions

View File

@@ -11,9 +11,6 @@ public:
RegulatorTask(bool _enabled = false, unsigned long _interval = 0) : LeanTask(_enabled, _interval) {}
protected:
const char* taskName = "Regulator task";
const int taskCore = 2;
bool tunerInit = false;
byte tunerState = 0;
byte tunerRegulator = 0;
@@ -21,8 +18,14 @@ protected:
float prevEtResult = 0;
float prevPidResult = 0;
void setup() {}
const char* getTaskName() {
return "Regulator";
}
int getTaskCore() {
return 1;
}
void loop() {
byte newTemp = vars.parameters.heatingSetpoint;