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:
parent
f0e1deb932
commit
952ccb68c4
3 changed files with 17 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue