1
0
Fork 0
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:
Steve Evans 2024-12-18 22:37:18 +00:00 committed by GitHub
parent 5dc5a8e973
commit b890220197
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 7 deletions

View file

@ -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