mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Merge pull request #1660 from fishpepper/serialpassthrough_fix
fixing serial passthrough on opened ports
This commit is contained in:
commit
5330d8c063
1 changed files with 6 additions and 0 deletions
|
@ -1441,6 +1441,12 @@ static void cliSerialPassthrough(char *cmdline)
|
|||
passThroughPort->mode, mode);
|
||||
serialSetMode(passThroughPort, mode);
|
||||
}
|
||||
// If this port has a rx callback associated we need to remove it now.
|
||||
// Otherwise no data will be pushed in the serial port buffer!
|
||||
if (passThroughPort->rxCallback) {
|
||||
printf("Removing rxCallback from port\r\n");
|
||||
passThroughPort->rxCallback = 0;
|
||||
}
|
||||
}
|
||||
|
||||
printf("Relaying data to device on port %d, Reset your board to exit "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue