AP_Logger: remove unused FORMATS stage in DFLogStart messagewriter
This commit is contained in:
parent
db8fdeebeb
commit
908dfa58f3
@ -174,7 +174,7 @@ bool LoggerMessageWriter_DFLogStart::writeallrallypoints()
|
||||
void LoggerMessageWriter_WriteSysInfo::reset()
|
||||
{
|
||||
LoggerMessageWriter::reset();
|
||||
stage = Stage::FORMATS;
|
||||
stage = Stage::FIRMWARE_STRING;
|
||||
}
|
||||
|
||||
void LoggerMessageWriter_WriteSysInfo::process() {
|
||||
@ -182,10 +182,6 @@ void LoggerMessageWriter_WriteSysInfo::process() {
|
||||
|
||||
switch(stage) {
|
||||
|
||||
case Stage::FORMATS:
|
||||
stage = Stage::FIRMWARE_STRING;
|
||||
FALLTHROUGH;
|
||||
|
||||
case Stage::FIRMWARE_STRING:
|
||||
if (! _logger_backend->Write_Message(fwver.fw_string)) {
|
||||
return; // call me again
|
||||
|
@ -27,8 +27,7 @@ public:
|
||||
|
||||
private:
|
||||
enum class Stage : uint8_t {
|
||||
FORMATS = 0,
|
||||
FIRMWARE_STRING,
|
||||
FIRMWARE_STRING = 0,
|
||||
GIT_VERSIONS,
|
||||
SYSTEM_ID,
|
||||
PARAM_SPACE_USED,
|
||||
|
Loading…
Reference in New Issue
Block a user