mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 04:41:36 +08:00
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:
committed by
Daniel Agar
parent
0283dc2459
commit
461b146ba8
@@ -1,5 +0,0 @@
|
|||||||
menuconfig DRIVERS_BAROMETER_INVENSENSE_ICP10100
|
|
||||||
bool "icp10100"
|
|
||||||
default n
|
|
||||||
---help---
|
|
||||||
Enable support for icp10100
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
menuconfig DRIVERS_BAROMETER_INVENSENSE_ICP10111
|
|
||||||
bool "icp10100"
|
|
||||||
default n
|
|
||||||
---help---
|
|
||||||
Enable support for icp10111
|
|
||||||
|
|
||||||
@@ -340,7 +340,7 @@ int MS5837::_collect()
|
|||||||
sensor_baro.timestamp_sample = timestamp_sample;
|
sensor_baro.timestamp_sample = timestamp_sample;
|
||||||
sensor_baro.device_id = get_device_id();
|
sensor_baro.device_id = get_device_id();
|
||||||
sensor_baro.pressure = P;
|
sensor_baro.pressure = P;
|
||||||
sensor_baro.temperature = T;
|
sensor_baro.temperature = _last_temperature;
|
||||||
sensor_baro.error_count = perf_event_count(_comms_errors);
|
sensor_baro.error_count = perf_event_count(_comms_errors);
|
||||||
sensor_baro.timestamp = hrt_absolute_time();
|
sensor_baro.timestamp = hrt_absolute_time();
|
||||||
_sensor_baro_pub.publish(sensor_baro);
|
_sensor_baro_pub.publish(sensor_baro);
|
||||||
|
|||||||
Reference in New Issue
Block a user