Browse Source

potential fix #391 MQTT avail and producing info inconsistent compared to web GUI

pull/421/head
lumapu 2 years ago
parent
commit
c467eead6b
  1. 2
      tools/esp8266/app.cpp

2
tools/esp8266/app.cpp

@ -600,7 +600,7 @@ void app::sendMqtt(void) {
uint8_t status = MQTT_STATUS_AVAIL_PROD;
if (!iv->isAvailable(mUtcTimestamp, rec))
status = MQTT_STATUS_NOT_AVAIL_NOT_PROD;
if (!iv->isProducing(mUtcTimestamp, rec)) {
else if (!iv->isProducing(mUtcTimestamp, rec)) {
if (MQTT_STATUS_AVAIL_PROD == status)
status = MQTT_STATUS_AVAIL_NOT_PROD;
}

Loading…
Cancel
Save