From 8a2dd6c70a88fc71bf257f0ec99999ff36fad4fe Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Mon, 5 Sep 2022 10:14:26 +0200 Subject: [PATCH] chore(example): fix warnings related to #3659 --- examples/others/file_explorer/lv_example_file_explorer_1.c | 2 +- examples/others/file_explorer/lv_example_file_explorer_2.c | 2 +- examples/others/file_explorer/lv_example_file_explorer_3.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/others/file_explorer/lv_example_file_explorer_1.c b/examples/others/file_explorer/lv_example_file_explorer_1.c index afe637abf..00a92f653 100644 --- a/examples/others/file_explorer/lv_example_file_explorer_1.c +++ b/examples/others/file_explorer/lv_example_file_explorer_1.c @@ -8,7 +8,7 @@ static void file_explorer_event_handler(lv_event_t * e) lv_obj_t * obj = lv_event_get_target(e); if(code == LV_EVENT_VALUE_CHANGED) { - char * cur_path = lv_file_explorer_get_current_path(obj); + const char * cur_path = lv_file_explorer_get_current_path(obj); const char * sel_fn = lv_file_explorer_get_selected_file_name(obj); uint16_t path_len = strlen(cur_path); uint16_t fn_len = strlen(sel_fn); diff --git a/examples/others/file_explorer/lv_example_file_explorer_2.c b/examples/others/file_explorer/lv_example_file_explorer_2.c index 3717796b6..c57edf6de 100644 --- a/examples/others/file_explorer/lv_example_file_explorer_2.c +++ b/examples/others/file_explorer/lv_example_file_explorer_2.c @@ -8,7 +8,7 @@ static void file_explorer_event_handler(lv_event_t * e) lv_obj_t * obj = lv_event_get_target(e); if(code == LV_EVENT_VALUE_CHANGED) { - char * cur_path = lv_file_explorer_get_current_path(obj); + const char * cur_path = lv_file_explorer_get_current_path(obj); const char * sel_fn = lv_file_explorer_get_selected_file_name(obj); uint16_t path_len = strlen(cur_path); uint16_t fn_len = strlen(sel_fn); diff --git a/examples/others/file_explorer/lv_example_file_explorer_3.c b/examples/others/file_explorer/lv_example_file_explorer_3.c index 78d505341..3c5145665 100644 --- a/examples/others/file_explorer/lv_example_file_explorer_3.c +++ b/examples/others/file_explorer/lv_example_file_explorer_3.c @@ -47,7 +47,7 @@ static void file_explorer_event_handler(lv_event_t * e) lv_obj_t * obj = lv_event_get_target(e); if(code == LV_EVENT_VALUE_CHANGED) { - char * cur_path = lv_file_explorer_get_current_path(obj); + const char * cur_path = lv_file_explorer_get_current_path(obj); const char * sel_fn = lv_file_explorer_get_selected_file_name(obj); uint16_t path_len = strlen(cur_path); uint16_t fn_len = strlen(sel_fn);