1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

cli - fix gpspassthrouh when GPS port is not open (#13878)

- return status from gpsPassthrough
- test gpsPort
This commit is contained in:
Petr Ledvina 2024-09-06 09:46:51 +02:00 committed by GitHub
parent f0e1deb932
commit 952ccb68c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 17 additions and 4 deletions

View file

@ -3603,7 +3603,9 @@ static void cliGpsPassthrough(const char *cmdName, char *cmdline)
UNUSED(cmdName);
UNUSED(cmdline);
gpsEnablePassthrough(cliPort);
if (!gpsPassthrough(cliPort)) {
cliPrintErrorLinef(cmdName, "GPS forwarding failed");
}
}
#endif