mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 21:56:35 +00:00
Fix linux_build
This commit is contained in:
parent
5c243910be
commit
89dab2a3d4
@ -51,6 +51,7 @@ static lv_font_t* font_add_to_list(const char* payload)
|
|||||||
lv_font_t* font = hasp_font_load(filename);
|
lv_font_t* font = hasp_font_load(filename);
|
||||||
char* name_p = NULL;
|
char* name_p = NULL;
|
||||||
|
|
||||||
|
#if defined(ARDUINO_ARCH_ESP32)
|
||||||
if(!font) {
|
if(!font) {
|
||||||
// Try .ttf file
|
// Try .ttf file
|
||||||
|
|
||||||
@ -85,6 +86,7 @@ static lv_font_t* font_add_to_list(const char* payload)
|
|||||||
font = info.font;
|
font = info.font;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if(!font) return NULL;
|
if(!font) return NULL;
|
||||||
LOG_VERBOSE(TAG_FONT, F("Loaded font %s size %d"), filename, font->line_height);
|
LOG_VERBOSE(TAG_FONT, F("Loaded font %s size %d"), filename, font->line_height);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user