1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

Adding CLI command pass through for MSP (#13940)

This commit is contained in:
J Blackman 2024-10-03 23:59:47 +10:00 committed by GitHub
parent 23e682c310
commit c2900de5c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 204 additions and 129 deletions

View file

@ -138,13 +138,6 @@ static void taskHandleSerial(timeUs_t currentTimeUs)
DEBUG_SET(DEBUG_USB, 1, usbVcpIsConnected());
#endif
#ifdef USE_CLI
// in cli mode, all serial stuff goes to here. enter cli mode by sending #
if (cliMode) {
cliProcess();
return;
}
#endif
bool evaluateMspData = ARMING_FLAG(ARMED) ? MSP_SKIP_NON_MSP_DATA : MSP_EVALUATE_NON_MSP_DATA;
mspSerialProcess(evaluateMspData, mspFcProcessCommand, mspFcProcessReply);
}