Skip to content

Commit

Permalink
Bugfix for missing parameter 0 in auto-discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
fredlcore committed Nov 12, 2024
1 parent 9d02c70 commit fab3e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BSB_LAN/include/mqtt_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;j<sizeof(cmdtbl)/sizeof(cmdtbl[0]) - 1;j++) {
if (bus->getBusType() == BUS_PPS && line < 15000) {
j = findLine(15000);
Expand Down

0 comments on commit fab3e81

Please sign in to comment.