mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-08 13:41:40 +02:00
potential fix #391 MQTT avail and producing info inconsistent compared to web GUI
This commit is contained in:
parent
1620b633d8
commit
c467eead6b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue