AP_Param: Fix `ENABLE_DEBUG` enabled error with no embedded param

This commit is contained in:
Iampete1 2024-07-29 01:36:14 +01:00 committed by Peter Barker
parent 64fc60ce32
commit 838fbc2b3b
1 changed files with 1 additions and 1 deletions

View File

@ -2533,7 +2533,7 @@ void AP_Param::load_param_defaults(const volatile char *ptr, int32_t length, boo
AP_Param *vp = find(pname, &var_type);
if (!vp) {
if (last_pass) {
#if ENABLE_DEBUG
#if ENABLE_DEBUG && (AP_PARAM_MAX_EMBEDDED_PARAM > 0)
::printf("Ignored unknown param %s from embedded region (offset=%u)\n",
pname, unsigned(ptr - param_defaults_data.data));
hal.console->printf(