Fix telnet line length regression

This commit is contained in:
Theo Arends 2025-03-23 22:36:42 +01:00
parent f71ca3e0a2
commit 307e1d9c29

View File

@ -91,7 +91,7 @@ void TelnetWrite(char *line, uint32_t len) {
Telnet.client.printf("\x1b[%dm", diffcolor);
Telnet.client.write(line, time_len);
Telnet.client.printf("\x1b[%dm", textcolor);
Telnet.client.write(time_end, len - time_len -1);
Telnet.client.write(time_end, len - time_len);
Telnet.client.write("\x1b[0m\r\n"); // Restore colors
}
}