diff --git a/src/AlexaBridgeLogic.cpp b/src/AlexaBridgeLogic.cpp index 86188ed..031edf2 100644 --- a/src/AlexaBridgeLogic.cpp +++ b/src/AlexaBridgeLogic.cpp @@ -221,9 +221,10 @@ bool AlexaBridgeLogic::formatTimestamp(time_t instant, char *buffer, size_t size return false; } - // gmtime_r and snprintf instead of strftime, which links the time zone and locale tables: 5.5 KB of flash. - // snprintf and not snprintf_P: on the ESP8266 snprintf reads a PROGMEM format itself, and snprintf_P comes - // in one object with printf_P and sprintf_P, which link the FILE-based printf: 5.8 KB. + // gmtime_r and snprintf instead of strftime, which links the time zone and locale tables: 11.3 KB of flash + // and 0.8 KB of RAM. snprintf and not snprintf_P: on the ESP8266 snprintf reads a PROGMEM format itself, and + // snprintf_P comes in one object with printf_P and sprintf_P, which link the FILE-based printf: 5.8 KB of + // flash. (Both measured with examples/basicLight.cpp for d1_mini, Arduino core 3.1.2.) struct tm utc; if (gmtime_r(&instant, &utc) == nullptr) {