drivers: barometer: ms5837 fix compilation error

Fixes MS5837.cpp:343:29: error: 'T' was not declared in this scope by using last temperature instead
This commit is contained in:
Peter van der Perk 2024-03-31 20:44:57 +02:00 committed by Daniel Agar
parent 0283dc2459
commit 461b146ba8
3 changed files with 1 additions and 12 deletions

View File

@ -1,5 +0,0 @@
menuconfig DRIVERS_BAROMETER_INVENSENSE_ICP10100
bool "icp10100"
default n
---help---
Enable support for icp10100

View File

@ -1,6 +0,0 @@
menuconfig DRIVERS_BAROMETER_INVENSENSE_ICP10111
bool "icp10100"
default n
---help---
Enable support for icp10111

View File

@ -340,7 +340,7 @@ int MS5837::_collect()
sensor_baro.timestamp_sample = timestamp_sample;
sensor_baro.device_id = get_device_id();
sensor_baro.pressure = P;
sensor_baro.temperature = T;
sensor_baro.temperature = _last_temperature;
sensor_baro.error_count = perf_event_count(_comms_errors);
sensor_baro.timestamp = hrt_absolute_time();
_sensor_baro_pub.publish(sensor_baro);