1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-07 20:33:47 +01:00
This commit is contained in:
J. Nick Koston
2025-10-02 11:43:27 +02:00
parent f2aa5a754c
commit 772450f1b3

View File

@@ -355,9 +355,12 @@ class Logger : public Component {
buffer[pos++] = '[';
copy_string(buffer, pos, tag);
buffer[pos++] = ':';
buffer[pos++] = '0' + (line / 100) % 10;
buffer[pos++] = '0' + (line / 10) % 10;
buffer[pos++] = '0' + line % 10;
int hundreds = line / 100;
line -= hundreds * 100;
int tens = line / 10;
buffer[pos++] = '0' + hundreds;
buffer[pos++] = '0' + tens;
buffer[pos++] = '0' + (line - tens * 10);
buffer[pos++] = ']';
#if defined(USE_ESP32) || defined(USE_LIBRETINY) || defined(USE_ZEPHYR)