fix: do not access null lvobj

This commit is contained in:
Raphael Coeffic
2022-06-11 15:13:11 +02:00
committed by Raphael Coeffic
parent 6d7c8ed059
commit b44ba6c60c
+1
View File
@@ -138,6 +138,7 @@ class Window
void setTextFlags(LcdFlags flags)
{
textFlags = flags;
if (!lvobj) return;
// lv integration for colors
auto textColor = COLOR_VAL(flags);