From 0acccaf4b7ae082427316721dcd3984685390000 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 11 Oct 2021 10:38:43 +1100 Subject: [PATCH] AP_ExternalAHRS: factor substring from allocation_error parameter --- libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.cpp b/libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.cpp index ce4e877ae4..da14f5be54 100644 --- a/libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.cpp +++ b/libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.cpp @@ -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)) {