Skip to content

Commit 8b65d35

Browse files
committed
Fix path when using LVGL v8
1 parent a387e79 commit 8b65d35

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lvgl_helpers.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,17 @@
1919
#include "driver/i2c.h"
2020

2121
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
22-
#include "src/lv_core/lv_refr.h"
22+
#if (LVGL_VERSION_MAJOR < 8)
23+
#include "src/lv_core/lv_refr.h"
24+
#else
25+
#include "src/core/lv_refr.h"
26+
#endif
2327
#else
24-
#include "lvgl/src/lv_core/lv_refr.h"
28+
#if (LVGL_VERSION_MAJOR < 8)
29+
#include "lvgl/src/lv_core/lv_refr.h"
30+
#else
31+
#include "lvgl/src/core/lv_refr.h"
32+
#endif
2533
#endif
2634

2735
/*********************

0 commit comments

Comments
 (0)