mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-12-15 10:17:49 +08:00
feat(cjson): Add function to encode json number when "sprintf" not support float
Newlib use nano mode as default. When enable nano mode, cjson use internal function to encode for float data. Otherwise using "sprintf" to encode float data.
This commit is contained in:
@@ -4,3 +4,7 @@
|
||||
COMPONENT_ADD_INCLUDEDIRS += cJSON
|
||||
|
||||
COMPONENT_SRCDIRS := cJSON
|
||||
|
||||
ifdef CONFIG_NEWLIB_LIBRARY_LEVEL_NORMAL
|
||||
CFLAGS += -DCJSON_SPRINTF_FLOAT=1
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user