drivers remove device _debug_enabled

This commit is contained in:
Daniel Agar
2017-09-24 11:39:30 -04:00
parent e5f46856c4
commit 0da2dca8c1
10 changed files with 2 additions and 36 deletions
-3
View File
@@ -243,9 +243,6 @@ BMA180::BMA180(int bus, spi_dev_e device) :
{
_device_id.devid_s.devtype = DRV_ACC_DEVTYPE_BMA180;
// enable debug() calls
_debug_enabled = true;
// default scale factors
_accel_scale.x_offset = 0;
_accel_scale.x_scale = 1.0f;
-3
View File
@@ -433,9 +433,6 @@ L3GD20::L3GD20(int bus, const char *path, spi_dev_e device, enum Rotation rotati
_rotation(rotation),
_checked_next(0)
{
// enable debug() calls
_debug_enabled = true;
_device_id.devid_s.devtype = DRV_GYR_DEVTYPE_L3GD20;
// default scale factors
-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;
-1
View File
@@ -241,7 +241,6 @@ MK::MK(int bus, const char *_device_path) :
strncpy(_device, _device_path, sizeof(_device));
/* enforce null termination */
_device[sizeof(_device) - 1] = '\0';
_debug_enabled = true;
}
MK::~MK()
-1
View File
@@ -190,7 +190,6 @@ PWMSim::PWMSim() :
_task_should_exit(false),
_mixers(nullptr)
{
_debug_enabled = true;
memset(_controls, 0, sizeof(_controls));
_control_topics[0] = ORB_ID(actuator_controls_0);
-2
View File
@@ -156,8 +156,6 @@ ADC::ADC(uint32_t channels) :
_to_system_power(nullptr),
_to_adc_report(nullptr)
{
_debug_enabled = true;
/* always enable the temperature sensor */
channels |= 1 << 16;
+1 -7
View File
@@ -296,7 +296,7 @@ class ToneAlarm : public device::CDev
{
public:
ToneAlarm();
~ToneAlarm();
~ToneAlarm() = default;
virtual int init();
@@ -404,8 +404,6 @@ ToneAlarm::ToneAlarm() :
_next(nullptr),
_cbrk(CBRK_OFF)
{
// enable debug() calls
//_debug_enabled = true;
_default_tunes[TONE_STARTUP_TUNE] = "MFT240L8 O4aO5dc O4aO5dc O4aO5dc L16dcdcdcdc"; // startup tune
_default_tunes[TONE_ERROR_TUNE] = "MBT200a8a8a8PaaaP"; // ERROR tone
_default_tunes[TONE_NOTIFY_POSITIVE_TUNE] = "MFT200e8a8a"; // Notify Positive tone
@@ -439,10 +437,6 @@ ToneAlarm::ToneAlarm() :
_tune_names[TONE_HOME_SET] = "home_set";
}
ToneAlarm::~ToneAlarm()
{
}
int
ToneAlarm::init()
{
-4
View File
@@ -94,8 +94,6 @@ uORB::DeviceNode::DeviceNode(const struct orb_metadata *meta, const char *name,
_subscriber_count(0),
_publisher(0)
{
// enable debug() calls
//_debug_enabled = true;
}
uORB::DeviceNode::~DeviceNode()
@@ -833,8 +831,6 @@ uORB::DeviceMaster::DeviceMaster(Flavor f) :
(f == PUBSUB) ? TOPIC_MASTER_DEVICE_PATH : PARAM_MASTER_DEVICE_PATH),
_flavor(f)
{
// enable debug() calls
//_debug_enabled = true;
_last_statistics_output = hrt_absolute_time();
}
@@ -106,8 +106,6 @@ ADCSIM::ADCSIM(uint32_t channels) :
_channel_count(0),
_samples(nullptr)
{
//_debug_enabled = true;
/* always enable the temperature sensor */
channels |= 1 << 16;
@@ -117,7 +117,7 @@ class ToneAlarm : public VirtDevObj
{
public:
ToneAlarm();
~ToneAlarm();
~ToneAlarm() = default;
virtual int devIOCTL(unsigned long cmd, unsigned long arg);
virtual ssize_t devWrite(const void *buffer, size_t len);
@@ -218,8 +218,6 @@ ToneAlarm::ToneAlarm() :
_next(nullptr),
_note_call{}
{
// enable debug() calls
//_debug_enabled = true;
_default_tunes[TONE_STARTUP_TUNE] = "MFT240L8 O4aO5dc O4aO5dc O4aO5dc L16dcdcdcdc"; // startup tune
_default_tunes[TONE_ERROR_TUNE] = "MBT200a8a8a8PaaaP"; // ERROR tone
_default_tunes[TONE_NOTIFY_POSITIVE_TUNE] = "MFT200e8a8a"; // Notify Positive tone
@@ -252,10 +250,6 @@ ToneAlarm::ToneAlarm() :
_tune_names[TONE_HOME_SET] = "home_set";
}
ToneAlarm::~ToneAlarm()
{
}
unsigned
ToneAlarm::note_to_divisor(unsigned note)
{