From 249bf494dddbcaf66e96fbea76af529ee4843257 Mon Sep 17 00:00:00 2001 From: David 'Buzz' Bussenschutt Date: Sun, 3 Nov 2024 08:07:31 +1000 Subject: [PATCH] suggestion from peter --- libraries/AP_NavEKF3/AP_NavEKF3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_NavEKF3/AP_NavEKF3.cpp b/libraries/AP_NavEKF3/AP_NavEKF3.cpp index 26f928c3885e4..815f76ced8e10 100644 --- a/libraries/AP_NavEKF3/AP_NavEKF3.cpp +++ b/libraries/AP_NavEKF3/AP_NavEKF3.cpp @@ -810,8 +810,8 @@ bool NavEKF3::InitialiseFilter(void) } // check if there is enough memory to create the EKF cores - uint16_t x = AP::dal().available_memory(); - printf("ekf3 stats: avail:%d numcores:%d sizeof:%lu\n",x,num_cores,(unsigned long)(sizeof(NavEKF3_core)*num_cores + 4096)); + uint32_t x = AP::dal().available_memory(); + printf("ekf3 stats: avail:%lu numcores:%d sizeof:%lu\n",x,num_cores,(unsigned long)(sizeof(NavEKF3_core)*num_cores + 4096)); if (x < (sizeof(NavEKF3_core)*num_cores + 4096)) { GCS_SEND_TEXT(MAV_SEVERITY_CRITICAL, "EKF3 not enough memory: %d",(unsigned int)x); _enable.set(0);