mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Fix Linux build
This commit is contained in:
parent
1a08c2ca28
commit
9b57bf6feb
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user