From 756972a80bc9cf9b7462c652c9d7b8712cfc48fe Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Thu, 23 Sep 2021 13:23:13 +0530 Subject: [PATCH] AP_DAL: replace config_error with allocation_error --- libraries/AP_DAL/AP_DAL.cpp | 2 +- libraries/AP_DAL/AP_DAL_RangeFinder.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_DAL/AP_DAL.cpp b/libraries/AP_DAL/AP_DAL.cpp index ee8407b0a1..da0f0fd73b 100644 --- a/libraries/AP_DAL/AP_DAL.cpp +++ b/libraries/AP_DAL/AP_DAL.cpp @@ -145,7 +145,7 @@ void AP_DAL::init_sensors(void) #endif if (alloc_failed) { - AP_BoardConfig::config_error("Unable to allocate DAL backends"); + AP_BoardConfig::allocation_error("Unable to allocate DAL backends"); } } diff --git a/libraries/AP_DAL/AP_DAL_RangeFinder.cpp b/libraries/AP_DAL/AP_DAL_RangeFinder.cpp index 0d83c518c9..842dd31e37 100644 --- a/libraries/AP_DAL/AP_DAL_RangeFinder.cpp +++ b/libraries/AP_DAL/AP_DAL_RangeFinder.cpp @@ -27,7 +27,7 @@ AP_DAL_RangeFinder::AP_DAL_RangeFinder() } return; failed: - AP_BoardConfig::config_error("Unable to allocate DAL backends"); + AP_BoardConfig::allocation_error("Unable to allocate DAL backends"); #endif }