Browse Source

Blimp: use allocation_error instead of panic on allocation failure

gps-1.3.1
bugobliterator 3 years ago committed by Peter Barker
parent
commit
8a3e1b96ab
  1. 2
      Blimp/system.cpp

2
Blimp/system.cpp

@ -263,7 +263,7 @@ void Blimp::allocate_motors(void) @@ -263,7 +263,7 @@ void Blimp::allocate_motors(void)
break;
}
if (motors == nullptr) {
AP_HAL::panic("Unable to allocate FRAME_CLASS=%u", (unsigned)g2.frame_class.get());
AP_BoardConfig::allocation_error("Unable to allocate FRAME_CLASS=%u", (unsigned)g2.frame_class.get());
}
AP_Param::load_object_from_eeprom(motors, Fins::var_info);

Loading…
Cancel
Save