mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-12 19:10:32 +03:00
Fix space in status output when gps version is unknown (#13423)
* Fix space in status output when gps version is unknown * Refactor per review
This commit is contained in:
parent
a0c0e191e1
commit
6d98dbb742
1 changed files with 1 additions and 6 deletions
|
@ -4820,12 +4820,7 @@ if (buildKey) {
|
|||
cliPrint("configured");
|
||||
}
|
||||
}
|
||||
if (gpsData.platformVersion != UBX_VERSION_UNDEF) {
|
||||
cliPrint(", version = ");
|
||||
cliPrintf("%s", ubloxVersionMap[gpsData.platformVersion].str);
|
||||
} else {
|
||||
cliPrint("unknown");
|
||||
}
|
||||
cliPrintf(", version = %s", gpsData.platformVersion != UBX_VERSION_UNDEF ? ubloxVersionMap[gpsData.platformVersion].str : "unknown");
|
||||
} else {
|
||||
cliPrint("NOT ENABLED");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue