From 7fdec0224030b1ed56515076fd690996a2b7d65d Mon Sep 17 00:00:00 2001 From: Maldus512 Date: Thu, 4 Apr 2024 16:27:11 +0200 Subject: [PATCH] Added version check for fallback field of the font, which has been added in LVGL v8.2.0 --- lib/writers/lvgl/lv_table_head.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/writers/lvgl/lv_table_head.js b/lib/writers/lvgl/lv_table_head.js index 558d0a9..528d507 100644 --- a/lib/writers/lvgl/lv_table_head.js +++ b/lib/writers/lvgl/lv_table_head.js @@ -94,7 +94,9 @@ lv_font_t ${f.font_name} = { .underline_thickness = ${f.src.underlineThickness}, #endif .dsc = &font_dsc, /*The custom font data. Will be accessed by \`get_glyph_bitmap/dsc\` */ +#if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9 .fallback = ${f.fallback}, +#endif .user_data = NULL, }; `.trim();