mirror of
https://github.com/esphome/esphome.git
synced 2025-10-07 20:33:47 +01:00
no mod
This commit is contained in:
@@ -355,9 +355,12 @@ class Logger : public Component {
|
|||||||
buffer[pos++] = '[';
|
buffer[pos++] = '[';
|
||||||
copy_string(buffer, pos, tag);
|
copy_string(buffer, pos, tag);
|
||||||
buffer[pos++] = ':';
|
buffer[pos++] = ':';
|
||||||
buffer[pos++] = '0' + (line / 100) % 10;
|
int hundreds = line / 100;
|
||||||
buffer[pos++] = '0' + (line / 10) % 10;
|
line -= hundreds * 100;
|
||||||
buffer[pos++] = '0' + line % 10;
|
int tens = line / 10;
|
||||||
|
buffer[pos++] = '0' + hundreds;
|
||||||
|
buffer[pos++] = '0' + tens;
|
||||||
|
buffer[pos++] = '0' + (line - tens * 10);
|
||||||
buffer[pos++] = ']';
|
buffer[pos++] = ']';
|
||||||
|
|
||||||
#if defined(USE_ESP32) || defined(USE_LIBRETINY) || defined(USE_ZEPHYR)
|
#if defined(USE_ESP32) || defined(USE_LIBRETINY) || defined(USE_ZEPHYR)
|
||||||
|
Reference in New Issue
Block a user