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

@@ -6,9 +6,6 @@ public:
SensorsTask(bool _enabled = false, unsigned long _interval = 0) : LeanTask(_enabled, _interval) {}
protected:
const char* taskName = "Sensors task";
const int taskCore = 2;
OneWire* oneWireOutdoorSensor;
OneWire* oneWireIndoorSensor;
@@ -25,7 +22,10 @@ protected:
bool emptyIndoorTemp = true;
void setup() {}
const char* getTaskName() {
return "Sensors";
}
void loop() {
if (settings.sensors.outdoor.type == 2) {
outdoorTemperatureSensor();