diff --git a/libraries/AP_Logger/LoggerMessageWriter.cpp b/libraries/AP_Logger/LoggerMessageWriter.cpp index 7e24202d96..447e954247 100644 --- a/libraries/AP_Logger/LoggerMessageWriter.cpp +++ b/libraries/AP_Logger/LoggerMessageWriter.cpp @@ -181,6 +181,13 @@ void LoggerMessageWriter_WriteSysInfo::process() { return; // call me again } } + stage = ws_blockwriter_stage_param_space_used; + FALLTHROUGH; + + case ws_blockwriter_stage_param_space_used: + if (! _logger_backend->Write_MessageF("Param space used: %u/%u", AP_Param::storage_used(), AP_Param::storage_size())) { + return; // call me again + } stage = ws_blockwriter_stage_rc_protocol; FALLTHROUGH; diff --git a/libraries/AP_Logger/LoggerMessageWriter.h b/libraries/AP_Logger/LoggerMessageWriter.h index 1de6355bdb..051ee9224d 100644 --- a/libraries/AP_Logger/LoggerMessageWriter.h +++ b/libraries/AP_Logger/LoggerMessageWriter.h @@ -31,6 +31,7 @@ private: ws_blockwriter_stage_firmware_string, ws_blockwriter_stage_git_versions, ws_blockwriter_stage_system_id, + ws_blockwriter_stage_param_space_used, ws_blockwriter_stage_rc_protocol }; write_sysinfo_blockwriter_stage stage;