From 0bf0a02bdf642d0ef6aa662d3aac9e5c4306d54e Mon Sep 17 00:00:00 2001 From: fvanroie Date: Thu, 4 Apr 2024 01:36:25 +0200 Subject: [PATCH] Add #if HASP_USE_QRCODE --- src/hasp/hasp_object.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hasp/hasp_object.cpp b/src/hasp/hasp_object.cpp index ae89b425..a28d7946 100644 --- a/src/hasp/hasp_object.cpp +++ b/src/hasp/hasp_object.cpp @@ -377,6 +377,7 @@ void hasp_new_object(const JsonObject& config, uint8_t& saved_page_id) } break; +#if HASP_USE_QRCODE > 0 case LV_HASP_QRCODE: case HASP_OBJ_QRCODE: obj = lv_qrcode_create(parent_obj, 140, LV_COLOR_BLACK, LV_COLOR_WHITE); @@ -385,6 +386,7 @@ void hasp_new_object(const JsonObject& config, uint8_t& saved_page_id) obj->user_data.objid = LV_HASP_QRCODE; } break; +#endif case LV_HASP_ARC: case HASP_OBJ_ARC: