mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 06:53:33 +08:00
lsm303d: setup device type
This commit is contained in:
committed by
Lorenz Meier
parent
30a6a3d0b6
commit
c6b0dc1ee8
@@ -530,6 +530,8 @@ LSM303D::LSM303D(int bus, const char* path, spi_dev_e device, enum Rotation rota
|
|||||||
_last_log_alarm_us(0),
|
_last_log_alarm_us(0),
|
||||||
_rotation(rotation)
|
_rotation(rotation)
|
||||||
{
|
{
|
||||||
|
_device_id.devid_s.devtype = DRV_MAG_DEVTYPE_LSM303D;
|
||||||
|
|
||||||
// enable debug() calls
|
// enable debug() calls
|
||||||
_debug_enabled = true;
|
_debug_enabled = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user