mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 01:43:33 +08:00
bmp280: fix device id (device type not set)
This commit is contained in:
@@ -41,6 +41,7 @@ BMP280::BMP280(bmp280::IBMP280 *interface) :
|
|||||||
_measure_perf(perf_alloc(PC_ELAPSED, MODULE_NAME": measure")),
|
_measure_perf(perf_alloc(PC_ELAPSED, MODULE_NAME": measure")),
|
||||||
_comms_errors(perf_alloc(PC_COUNT, MODULE_NAME": comms errors"))
|
_comms_errors(perf_alloc(PC_COUNT, MODULE_NAME": comms errors"))
|
||||||
{
|
{
|
||||||
|
_px4_baro.set_device_type(DRV_BARO_DEVTYPE_BMP280);
|
||||||
}
|
}
|
||||||
|
|
||||||
BMP280::~BMP280()
|
BMP280::~BMP280()
|
||||||
|
|||||||
Reference in New Issue
Block a user