diff --git a/libraries/AP_Baro/AP_Baro_SITL.cpp b/libraries/AP_Baro/AP_Baro_SITL.cpp index 861674360e..cd914632a3 100644 --- a/libraries/AP_Baro/AP_Baro_SITL.cpp +++ b/libraries/AP_Baro/AP_Baro_SITL.cpp @@ -11,9 +11,9 @@ extern const AP_HAL::HAL& hal; constructor - registers instance at top Baro driver */ AP_Baro_SITL::AP_Baro_SITL(AP_Baro &baro) : + AP_Baro_Backend(baro), _sitl(AP::sitl()), - _has_sample(false), - AP_Baro_Backend(baro) + _has_sample(false) { if (_sitl != nullptr) { _instance = _frontend.register_sensor();