mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-13 15:37:03 +00:00
Updated disconnect voltage limit
This commit is contained in:
parent
c9bb44fd71
commit
b0c1bfb156
@ -634,7 +634,7 @@ void loop() {
|
||||
|
||||
#if defined(ESP32)
|
||||
// At this point, if the voltage is not optimal, disconnect from WiFi to preserve power
|
||||
if(!hw.isVoltageOptimal(0.4)) {
|
||||
if(!hw.isVoltageOptimal(0.35)) {
|
||||
if(WiFi.getMode() == WIFI_STA) {
|
||||
debugW_P(PSTR("Vcc dropped below limit, disconnecting WiFi for 5 seconds to preserve power"));
|
||||
ch->disconnect(5000);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user