Skip to content

Commit

Permalink
Add #if HASP_USE_QRCODE
Browse files Browse the repository at this point in the history
  • Loading branch information
fvanroie committed Apr 3, 2024
1 parent eff65ce commit 0bf0a02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hasp/hasp_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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:
Expand Down

0 comments on commit 0bf0a02

Please sign in to comment.