From 2910aae2c6c54f55a64ac7c4ee258d10c105f952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20BOU=C3=89?= Date: Wed, 19 Apr 2023 16:27:50 +0200 Subject: [PATCH] Fix strftime issue in max7219 doc (#2856) Fix strftime issue in max7219 doc error: no matching function for call to 'esphome::max7219::MAX7219Component::strftime(const char [9])' it.strftime("%H.%M.%S"); --- components/display/max7219.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/display/max7219.rst b/components/display/max7219.rst index b60386cae..4959dbb10 100644 --- a/components/display/max7219.rst +++ b/components/display/max7219.rst @@ -104,7 +104,7 @@ segment of the previous position will be enabled. // Print the current time it.print(" "); - it.strftime("%H.%M.%S"); + it.strftime("%H.%M.%S", id(esptime).now()); // Result for 10:06:42 -> "10.06.42 " // Change the display intnsity based on another id.