Browse Source

AP_Baro: use sensor_config_error()

master
Andrew Tridgell 8 years ago
parent
commit
cbea29ad71
  1. 2
      libraries/AP_Baro/AP_Baro.cpp

2
libraries/AP_Baro/AP_Baro.cpp

@ -488,7 +488,7 @@ void AP_Baro::init(void) @@ -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");
}
}

Loading…
Cancel
Save