Fix Linux build

This commit is contained in:
fvanroie 2024-04-04 01:22:06 +02:00
parent 1a08c2ca28
commit 9b57bf6feb
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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.