1
0
Fork 0
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:
Mark Haslinghuis 2024-03-07 12:09:42 +01:00 committed by GitHub
parent a0c0e191e1
commit 6d98dbb742
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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");
}