diff --git a/src/hasp/hasp_attribute.cpp b/src/hasp/hasp_attribute.cpp index 9c1c61f9..9e7205c7 100644 --- a/src/hasp/hasp_attribute.cpp +++ b/src/hasp/hasp_attribute.cpp @@ -15,11 +15,9 @@ #endif /*** Image Improvement ***/ -#if HASP_TARGET_ARDUINO #if HASP_USE_QRCODE > 0 #include "lv_qrcode.h" #endif -#endif LV_FONT_DECLARE(unscii_8_icon); extern const char** btnmatrix_default_map; // memory pointer to lvgl default btnmatrix map diff --git a/src/hasp/hasp_attribute_helper.h b/src/hasp/hasp_attribute_helper.h index 888b691c..a88e716f 100644 --- a/src/hasp/hasp_attribute_helper.h +++ b/src/hasp/hasp_attribute_helper.h @@ -608,6 +608,7 @@ static inline void my_btn_set_text(lv_obj_t* obj, const char* value) } // OK - lvgl does not return a const char * +#if HASP_USE_QRCODE > 0 static const char* my_qrcode_get_text(const lv_obj_t* obj) { if(!obj) { @@ -628,6 +629,7 @@ static void my_qrcode_set_text(lv_obj_t* obj, const char* text) { lv_qrcode_set_text(obj, text); } +#endif /** * Get the value_str for an object part and state.