AP_Logger: log parameter space used as part of log open

This commit is contained in:
Peter Barker 2019-08-27 13:49:34 +10:00 committed by Peter Barker
parent b493805fb4
commit 78af091869
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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;