mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 21:26:43 +00:00
Fix Linux build
This commit is contained in:
parent
1a08c2ca28
commit
9b57bf6feb
@ -15,11 +15,9 @@
|
|||||||
#endif
|
#endif
|
||||||
/*** Image Improvement ***/
|
/*** Image Improvement ***/
|
||||||
|
|
||||||
#if HASP_TARGET_ARDUINO
|
|
||||||
#if HASP_USE_QRCODE > 0
|
#if HASP_USE_QRCODE > 0
|
||||||
#include "lv_qrcode.h"
|
#include "lv_qrcode.h"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
LV_FONT_DECLARE(unscii_8_icon);
|
LV_FONT_DECLARE(unscii_8_icon);
|
||||||
extern const char** btnmatrix_default_map; // memory pointer to lvgl default btnmatrix map
|
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 *
|
// 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)
|
static const char* my_qrcode_get_text(const lv_obj_t* obj)
|
||||||
{
|
{
|
||||||
if(!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);
|
lv_qrcode_set_text(obj, text);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the value_str for an object part and state.
|
* Get the value_str for an object part and state.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user