From f5a33e7a548688d8914a4b27ee7197255e141fba Mon Sep 17 00:00:00 2001 From: fvanroie Date: Sun, 11 Apr 2021 01:30:43 +0200 Subject: [PATCH] Fix the defines for HASP_FONT_# --- src/hasp/hasp_attribute.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hasp/hasp_attribute.cpp b/src/hasp/hasp_attribute.cpp index c503e894..1a4f322b 100644 --- a/src/hasp/hasp_attribute.cpp +++ b/src/hasp/hasp_attribute.cpp @@ -467,19 +467,19 @@ static lv_font_t* haspPayloadToFont(const char* payload) return &HASP_FONT_1; #endif -#ifdef LV_FONT_CUSTOM_16 +#ifdef HASP_FONT_2 case 16: LOG_WARNING(TAG_ATTR, "%s %d %x", __FILE__, __LINE__, HASP_FONT_2); return &HASP_FONT_2; #endif -#ifdef LV_FONT_CUSTOM_22 +#ifdef HASP_FONT_3 case 22: LOG_WARNING(TAG_ATTR, "%s %d %x", __FILE__, __LINE__, HASP_FONT_3); return &HASP_FONT_3; #endif -#ifdef LV_FONT_CUSTOM_28 +#ifdef HASP_FONT_4 case 28: LOG_WARNING(TAG_ATTR, "%s %d %x", __FILE__, __LINE__, HASP_FONT_4); return &HASP_FONT_4;