Kconfig: Handle LV_SPRINTF_DISABLE_FLOAT (#1988)

* Kconfig: Handle LV_SPRINTF_DISABLE_FLOAT

* Update CHANGELOG

* Remove debug code

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
Carlos Diaz
2021-01-04 08:27:38 -06:00
committed by GitHub
parent de44f74522
commit 6ed420e043
2 changed files with 14 additions and 0 deletions

View File

@@ -15,9 +15,11 @@
- fix(textarea) buffer overflow in password mode with UTF-8 characters
- fix(textarea) cursor position after hiding character in password mode
- fix(linemeter) draw critical lines with correct color
- fix(kconfig) handle disable sprintf float correctly.
- fix(layout) stop layout after recursion threshold is reached
- fix(gauge) fix redraw with image needle
## v7.8.1
### Bugfixes

View File

@@ -400,6 +400,18 @@ extern "C" {
#endif
#endif
/*------------------
* SPRINTF DISABLE FLOAT
*-----------------*/
#ifndef LV_SPRINTF_DISABLE_FLOAT
#ifndef CONFIG_LV_SPRINTF_DISABLE_FLOAT
#define LV_SPRINTF_DISABLE_FLOAT 0
#else
#define LV_SPRINTF_DISABLE_FLOAT 1
#endif
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif