Skip to content
Commit a5c53ff3 authored by Aurelien Jarno's avatar Aurelien Jarno Committed by Anas Nashif
Browse files

samples: mesh_badge: fix temperature format



The sensor API returns the temperature in celsisus degree. The Bluetooth
temperature characteristics uses M = 1, d = -2, b = 0, which corresponds
to a resolution of 0.01 degree. This means that the value returned by
sensor_value_to_double has to be multiplied by 100.

Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent 0e11d138
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment