fix warnings

This commit is contained in:
Gabor Kiss-Vamosi
2021-10-26 10:14:05 +02:00
parent 924bc754ad
commit 6319673db3
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ static void draw_event_cb(lv_event_t * e)
if(dsc->id == LV_CHART_AXIS_PRIMARY_X && dsc->text) {
const char * month[] = {"Jan", "Febr", "March", "Apr", "May", "Jun", "July", "Aug", "Sept", "Oct", "Nov", "Dec"};
dsc->text = month[dsc->value];
lv_snprintf(dsc->text, dsc->text_length, month[dsc->value]);
}
}