mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-27 04:33:04 +00:00
Fixed discover when setting different hostname in setup
This commit is contained in:
@@ -311,9 +311,9 @@ void AmsWebServer::dataJson() {
|
||||
|
||||
|
||||
uint8_t hanStatus;
|
||||
if(meterState->getLastError() < 0) {
|
||||
if(meterState->getLastError() != 0) {
|
||||
hanStatus = 3;
|
||||
} else if((meterConfig->baud == 0 || meterState->getLastUpdateMillis() == 0) && millis < 15000) {
|
||||
} else if((meterConfig->baud == 0 || meterState->getLastUpdateMillis() == 0) && millis < 30000) {
|
||||
hanStatus = 0;
|
||||
} else if(millis - meterState->getLastUpdateMillis() < 15000) {
|
||||
hanStatus = 1;
|
||||
|
||||
Reference in New Issue
Block a user