mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-02-06 00:25:55 +00:00
Improve power saving (#1024)
* Limit tasks in loop based on voltage * Updated disconnect voltage limit * Fixed 8266 build
This commit is contained in:
@@ -166,7 +166,7 @@ bool AmsMqttHandler::connected() {
|
||||
|
||||
bool AmsMqttHandler::loop() {
|
||||
bool ret = mqtt.loop();
|
||||
delay(10);
|
||||
delay(10); // Needed to preserve power. After adding this, the voltage is super smooth on a HAN powered device
|
||||
yield();
|
||||
#if defined(ESP32)
|
||||
esp_task_wdt_reset();
|
||||
|
||||
Reference in New Issue
Block a user