refactor: memory optimization for esp8266

This commit is contained in:
Yurii committed 2024-11-11 02:41:39 +03:00
1 parent 6a9bd9673a
commit fda18cdb13
17 files changed
+1044 -788

No files matched your search

+11 -1
View File
@@ -61,16 +61,26 @@ protected:
void loop() {
if (isPollingDallasSensors()) {
pollingDallasSensors(false);
this->yield();
}
if (millis() - this->globalLastPollingTime > this->globalPollingInterval) {
makeDallasInstances();
cleanDallasInstances();
makeDallasInstances();
this->yield();
searchDallasSensors();
fillingAddressesDallasSensors();
this->yield();
pollingDallasSensors();
this->yield();
pollingNtcSensors();
this->yield();
pollingBleSensors();
this->yield();
this->globalLastPollingTime = millis();
}