mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_ExternalAHRS: factor substring from allocation_error parameter
This commit is contained in:
parent
d6ebc5578b
commit
0acccaf4b7
@ -121,7 +121,7 @@ AP_ExternalAHRS_VectorNav::AP_ExternalAHRS_VectorNav(AP_ExternalAHRS *_frontend,
|
||||
last_pkt2 = new VN_packet2;
|
||||
|
||||
if (!pktbuf || !last_pkt1 || !last_pkt2) {
|
||||
AP_BoardConfig::allocation_error("Failed to allocate ExternalAHRS");
|
||||
AP_BoardConfig::allocation_error("ExternalAHRS");
|
||||
}
|
||||
|
||||
if (!hal.scheduler->thread_create(FUNCTOR_BIND_MEMBER(&AP_ExternalAHRS_VectorNav::update_thread, void), "AHRS", 2048, AP_HAL::Scheduler::PRIORITY_SPI, 0)) {
|
||||
|
Loading…
Reference in New Issue
Block a user