mirror of
https://github.com/esphome/esphome.git
synced 2025-01-18 20:10:55 +00:00
[display] Fix strftime overload ignoring alignment (#7937)
This commit is contained in:
parent
f15e3cfb9b
commit
440080a753
@ -1,6 +1,6 @@
|
||||
#include "display.h"
|
||||
#include "display_color_utils.h"
|
||||
#include <utility>
|
||||
#include "display_color_utils.h"
|
||||
#include "esphome/core/hal.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
@ -670,7 +670,7 @@ void Display::strftime(int x, int y, BaseFont *font, Color color, Color backgrou
|
||||
this->print(x, y, font, color, align, buffer, background);
|
||||
}
|
||||
void Display::strftime(int x, int y, BaseFont *font, Color color, TextAlign align, const char *format, ESPTime time) {
|
||||
this->strftime(x, y, font, color, COLOR_OFF, TextAlign::TOP_LEFT, format, time);
|
||||
this->strftime(x, y, font, color, COLOR_OFF, align, format, time);
|
||||
}
|
||||
void Display::strftime(int x, int y, BaseFont *font, Color color, const char *format, ESPTime time) {
|
||||
this->strftime(x, y, font, color, COLOR_OFF, TextAlign::TOP_LEFT, format, time);
|
||||
|
Loading…
x
Reference in New Issue
Block a user