From bcee8b56eef3496264919d28cabe89711cda340b Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 22 Nov 2021 19:20:14 +1100 Subject: [PATCH] AP_Param: simplify set_defaults_from_table error path --- libraries/AP_Param/AP_Param.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libraries/AP_Param/AP_Param.cpp b/libraries/AP_Param/AP_Param.cpp index f3caf9dc19..92abf82428 100644 --- a/libraries/AP_Param/AP_Param.cpp +++ b/libraries/AP_Param/AP_Param.cpp @@ -2486,10 +2486,7 @@ void AP_Param::set_defaults_from_table(const struct defaults_table_struct *table { for (uint8_t i=0; i 0) { - AP_BoardConfig::config_error("%s", buf); - } + AP_BoardConfig::config_error("param deflt fail:%s", table[i].name); } } }