drivers fix missing field initializers

This commit is contained in:
Daniel Agar
2017-09-16 21:29:52 +01:00
committed by Nuno Marques
parent 35e15ed540
commit 79869c848f
7 changed files with 11 additions and 14 deletions
+2 -4
View File
@@ -153,7 +153,7 @@ protected:
Device *_interface;
private:
work_s _work;
work_s _work{};
unsigned _measure_ticks;
ringbuffer::RingBuffer *_reports;
@@ -177,7 +177,7 @@ private:
enum Rotation _rotation;
struct mag_report _last_report; /**< used for info() */
struct mag_report _last_report {}; /**< used for info() */
uint8_t _range_bits;
uint8_t _conf_reg;
@@ -345,7 +345,6 @@ extern "C" __EXPORT int hmc5883_main(int argc, char *argv[]);
HMC5883::HMC5883(device::Device *interface, const char *path, enum Rotation rotation) :
CDev("HMC5883", path),
_interface(interface),
_work{},
_measure_ticks(0),
_reports(nullptr),
_scale{},
@@ -362,7 +361,6 @@ HMC5883::HMC5883(device::Device *interface, const char *path, enum Rotation rota
_sensor_ok(false),
_calibrated(false),
_rotation(rotation),
_last_report{0},
_range_bits(0),
_conf_reg(0),
_temperature_counter(0),