mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Don't handle non-MSP characters on VTX MSP port (#14091)
* Don't handle non-MSP characters on VTX MSP port * Remove check for CLI active on VTX MSP port as it can no longer be enabled * Only include check for MSP display port if USE_MSP_DISPLAYPORT is defined
This commit is contained in:
parent
5dc5a8e973
commit
b890220197
3 changed files with 12 additions and 7 deletions
|
@ -51,12 +51,6 @@ static int output(displayPort_t *displayPort, uint8_t cmd, uint8_t *buf, int len
|
|||
{
|
||||
UNUSED(displayPort);
|
||||
|
||||
#ifdef USE_CLI
|
||||
// FIXME There should be no dependency on the CLI but mspSerialPush doesn't check for cli mode, and can't because it also shouldn't have a dependency on the CLI.
|
||||
if (cliMode) {
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
return mspSerialPush(displayPortSerial, cmd, buf, len, MSP_DIRECTION_REPLY, MSP_V1);
|
||||
}
|
||||
|
||||
|
@ -229,4 +223,8 @@ displayPort_t *displayPortMspInit(void)
|
|||
void displayPortMspSetSerial(serialPortIdentifier_e serialPort) {
|
||||
displayPortSerial = serialPort;
|
||||
}
|
||||
|
||||
serialPortIdentifier_e displayPortMspGetSerial(void) {
|
||||
return displayPortSerial;
|
||||
}
|
||||
#endif // USE_MSP_DISPLAYPORT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue