AP_Baro: coverity fixes - add param init in constructor

This commit is contained in:
Grant Morphett 2015-07-29 17:22:25 +10:00 committed by Randy Mackay
parent 2a30b1862b
commit ff97bdd605
1 changed files with 3 additions and 1 deletions

View File

@ -161,7 +161,9 @@ AP_Baro_MS56XX::AP_Baro_MS56XX(AP_Baro &baro, AP_SerialBus *serial, bool use_tim
_updated(false),
_state(0),
_last_timer(0),
_use_timer(use_timer)
_use_timer(use_timer),
_D1(0.0f),
_D2(0.0f)
{
_instance = _frontend.register_sensor();
_serial->init();