AP_Baro: MS56XX: remove initialization to 0 from constructor

This commit is contained in:
Lucas De Marchi 2016-01-02 12:01:42 -02:00
parent 5bb2716081
commit 56e4de0bdd
2 changed files with 5 additions and 10 deletions

View File

@ -167,15 +167,10 @@ void AP_SerialBus_I2C::sem_give()
/*
constructor
*/
AP_Baro_MS56XX::AP_Baro_MS56XX(AP_Baro &baro, AP_SerialBus *serial, bool use_timer) :
AP_Baro_Backend(baro),
_serial(serial),
_updated(false),
_state(0),
_last_timer(0),
_use_timer(use_timer),
_D1(0.0f),
_D2(0.0f)
AP_Baro_MS56XX::AP_Baro_MS56XX(AP_Baro &baro, AP_SerialBus *serial, bool use_timer)
: AP_Baro_Backend(baro)
, _serial(serial)
, _use_timer(use_timer)
{
}

View File

@ -100,7 +100,7 @@ protected:
// Internal calibration registers
uint16_t _c1,_c2,_c3,_c4,_c5,_c6;
float _D1,_D2;
float _D1, _D2;
uint8_t _instance;
};