Skip to content

Commit

Permalink
samples: lwm2m-client: Enable Picolib float support
Browse files Browse the repository at this point in the history
Some overlays require floating point prints.
Enable the relevant Picolib config, instead of
Newlib.
Current default is to use Picolib.

Signed-off-by: Seppo Takalo <[email protected]>
  • Loading branch information
SeppoTakalo authored and rlubos committed Jan 30, 2024
1 parent 1339b45 commit 86469b6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion samples/cellular/lwm2m_client/overlay-assist-agnss.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_PICOLIBC_IO_FLOAT=y
#LwM2M Client utility library options
CONFIG_LWM2M_CLIENT_UTILS_GNSS_ASSIST_OBJ_SUPPORT=y
CONFIG_LWM2M_CLIENT_UTILS_LOCATION_ASSIST_AGNSS=y
Expand Down
2 changes: 1 addition & 1 deletion samples/cellular/lwm2m_client/overlay-assist-cell.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_PICOLIBC_IO_FLOAT=y
#LwM2M Client utility library options
CONFIG_LWM2M_CLIENT_UTILS_GROUND_FIX_OBJ_SUPPORT=y
CONFIG_LWM2M_CLIENT_UTILS_LOCATION_ASSIST_CELL=y
Expand Down
2 changes: 1 addition & 1 deletion samples/cellular/lwm2m_client/overlay-assist-pgps.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_PICOLIBC_IO_FLOAT=y
#LwM2M Client utility library options
CONFIG_LWM2M_CLIENT_UTILS_GNSS_ASSIST_OBJ_SUPPORT=y
CONFIG_LWM2M_CLIENT_UTILS_LOCATION_ASSIST_PGPS=y
Expand Down
3 changes: 1 addition & 2 deletions samples/cellular/lwm2m_client/overlay-assist-wifi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
CONFIG_NRF_MODEM_LIB_TRACE=n

# System settings
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_PICOLIBC_IO_FLOAT=y

# LwM2M Client utility library options
CONFIG_LWM2M_CLIENT_UTILS_GROUND_FIX_OBJ_SUPPORT=y
Expand Down

0 comments on commit 86469b6

Please sign in to comment.