mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
AP_Baro: use sensor_config_error()
This commit is contained in:
parent
e32e2f5b5d
commit
cbea29ad71
@ -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…
Reference in New Issue
Block a user