From fab3e816d2ade5b163f52889bae739caadf616aa Mon Sep 17 00:00:00 2001 From: fredlcore Date: Tue, 12 Nov 2024 11:01:48 +0800 Subject: [PATCH] Bugfix for missing parameter 0 in auto-discovery --- BSB_LAN/include/mqtt_handler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BSB_LAN/include/mqtt_handler.h b/BSB_LAN/include/mqtt_handler.h index 1ff36da9..07e4008c 100644 --- a/BSB_LAN/include/mqtt_handler.h +++ b/BSB_LAN/include/mqtt_handler.h @@ -415,7 +415,7 @@ boolean mqtt_send_discovery(boolean create=true) { uint8_t sensor_type = 0; int i = 0; float line = 0; - float old_line = 0; + float old_line = -1; for (uint16_t j=0;jgetBusType() == BUS_PPS && line < 15000) { j = findLine(15000);