net: lwm2m: tlv: fix float32/64 sign handling
When val1 is 0, we need to handle a negative val2 value so that we generate correct TLV value. Example: val1 = 0, val2 = -500000 is equivalent to -0.5 decimal. Currently we generate: 0.5 (losing the sign). Fixes: https://github.com/zephyrproject-rtos/zephyr/issues/16154 Signed-off-by:Michael Scott <mike@foundries.io>
Loading
Please sign in to comment