From 2f33550aace4c71fec3bb6b7297aa33ce61e0014 Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Fri, 11 Jun 2021 22:59:20 +0200 Subject: [PATCH] set LV_SPRINTF_CUSTOM to 1 --- include/lv_conf_v7.h | 4 ++-- include/lv_conf_v8.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/lv_conf_v7.h b/include/lv_conf_v7.h index c62e2abc..cc19efbb 100644 --- a/include/lv_conf_v7.h +++ b/include/lv_conf_v7.h @@ -655,8 +655,8 @@ typedef void* lv_font_user_data_t; #endif /*Change the built in (v)snprintf functions*/ -#define LV_SPRINTF_CUSTOM 0 -#if LV_SPRINTF_CUSTOM +#define LV_SPRINTF_CUSTOM 1 // saves 1.4 KiB +#if LV_SPRINTF_CUSTOM # define LV_SPRINTF_INCLUDE # define lv_snprintf snprintf # define lv_vsnprintf vsnprintf diff --git a/include/lv_conf_v8.h b/include/lv_conf_v8.h index b2709dbe..4cb1442c 100644 --- a/include/lv_conf_v8.h +++ b/include/lv_conf_v8.h @@ -556,7 +556,7 @@ typedef void * lv_font_user_data_t; #define LV_USE_ARABIC_PERSIAN_CHARS 0 /*Change the built in (v)snprintf functions*/ -#define LV_SPRINTF_CUSTOM 0 +#define LV_SPRINTF_CUSTOM 1 // saves 1.4 KiB #if LV_SPRINTF_CUSTOM # define LV_SPRINTF_INCLUDE # define lv_snprintf snprintf