mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
Resolve clang-tidy issue
This commit is contained in:
parent
f6e4a1a0f8
commit
9b5904e7dc
1 changed files with 1 additions and 2 deletions
|
@ -496,6 +496,7 @@ void Display::printf(int x, int y, int width, int height, BaseFont *font, float
|
|||
|
||||
char buffer[256];
|
||||
int ret = vsnprintf(buffer, sizeof(buffer), format, arg);
|
||||
va_end(arg);
|
||||
if (ret == 0)
|
||||
return;
|
||||
|
||||
|
@ -555,8 +556,6 @@ void Display::printf(int x, int y, int width, int height, BaseFont *font, float
|
|||
if (!line.empty()) {
|
||||
this->printf(x, line_y, font, align, "%s", line.c_str());
|
||||
}
|
||||
|
||||
va_end(arg);
|
||||
}
|
||||
|
||||
void Display::set_writer(display_writer_t &&writer) { this->writer_ = writer; }
|
||||
|
|
Loading…
Reference in a new issue