drivers: sensor: stm32_temp: use sensor_value_from_float()
The temperature being computed using a float variable, use sensor_value_from_float() instead of sensor_value_from_double(). This saves some flash. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
46ed467339
commit
52935edc5c
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ static int stm32_temp_channel_get(const struct device *dev, enum sensor_channel
|
|||
temp += 25;
|
||||
#endif
|
||||
|
||||
return sensor_value_from_double(val, temp);
|
||||
return sensor_value_from_float(val, temp);
|
||||
}
|
||||
|
||||
static const struct sensor_driver_api stm32_temp_driver_api = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue