AP_Baro: use sensor_config_error()

This commit is contained in:
Andrew Tridgell 2017-05-02 12:05:59 +10:00
parent e32e2f5b5d
commit cbea29ad71

View File

@ -488,7 +488,7 @@ void AP_Baro::init(void)
#endif
if (_num_drivers == 0 || _num_sensors == 0 || drivers[0] == nullptr) {
AP_HAL::panic("Baro: unable to initialise driver");
AP_BoardConfig::sensor_config_error("Baro: unable to initialise driver");
}
}