mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_Param: panic if defaults file load fails
This commit is contained in:
parent
f3b240533f
commit
b490f20f3d
@ -1459,7 +1459,7 @@ void AP_Param::reload_defaults_file(bool last_pass)
|
||||
if (load_defaults_file(default_file, last_pass)) {
|
||||
printf("Loaded defaults from %s\n", default_file);
|
||||
} else {
|
||||
printf("Failed to load defaults from %s\n", default_file);
|
||||
AP_HAL::panic("Failed to load defaults from %s\n", default_file);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user