mirror of
https://github.com/esphome/esphome.git
synced 2025-11-01 07:31:51 +00:00
[core] Simplify ESPTime::strftime() and save 20 bytes flash
This commit is contained in:
@@ -46,6 +46,9 @@ struct ESPTime {
|
|||||||
/** Convert this ESPTime struct to a string as specified by the format argument.
|
/** Convert this ESPTime struct to a string as specified by the format argument.
|
||||||
* @see https://en.cppreference.com/w/c/chrono/strftime
|
* @see https://en.cppreference.com/w/c/chrono/strftime
|
||||||
*
|
*
|
||||||
|
* @warning This method returns a dynamically allocated string which can cause heap fragmentation with some
|
||||||
|
* microcontrollers.
|
||||||
|
*
|
||||||
* @warning This method can return "ERROR" when the underlying strftime() call fails or when the
|
* @warning This method can return "ERROR" when the underlying strftime() call fails or when the
|
||||||
* output exceeds 128 bytes.
|
* output exceeds 128 bytes.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user