drivers remove device _debug_enabled

This commit is contained in:
Daniel Agar
2017-09-25 10:30:22 -04:00
parent e5f46856c4
commit 0da2dca8c1
10 changed files with 2 additions and 36 deletions
-6
View File
@@ -583,18 +583,12 @@ LSM303D::LSM303D(int bus, const char *path, spi_dev_e device, enum Rotation rota
_last_temperature(0),
_checked_next(0)
{
// enable debug() calls
_debug_enabled = true;
_device_id.devid_s.devtype = DRV_ACC_DEVTYPE_LSM303D;
/* Prime _mag with parents devid. */
_mag->_device_id.devid = _device_id.devid;
_mag->_device_id.devid_s.devtype = DRV_MAG_DEVTYPE_LSM303D;
// default scale factors
_accel_scale.x_offset = 0.0f;
_accel_scale.x_scale = 1.0f;