Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 8655ff3

Browse files
committed
Fixed small error in debug printing
1 parent db124eb commit 8655ff3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

software/src/tsmppt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ bool Tsmppt::readInputRegisters(int addr, int nb, uint16_t *dest)
7575
}
7676
if (tries > 1)
7777
{
78-
QLOG_ERROR() << "MODBUS:" << modbus_strerror(errno) << "Retrying (" << 5-tries-1 << ")...";
78+
QLOG_ERROR() << "MODBUS:" << modbus_strerror(errno) << "Retrying (" << 5-tries+1 << ")...";
7979
}
8080
tries--;
8181
}

0 commit comments

Comments
 (0)