respond to 'Q' (#3382)

This commit is contained in:
Matthew Kennedy 2021-10-20 12:40:37 -07:00 committed by GitHub
parent d008b0f8c3
commit 44f8698d3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -658,11 +658,10 @@ static void handleExecuteCommand(TsChannelBase* tsChannel, char *data, int incom
*/
bool handlePlainCommand(TsChannelBase* tsChannel, uint8_t command) {
// Bail fast if guaranteed not to be a plain command
if (command == 0)
{
if (command == 0) {
return false;
}
else if (command == TS_HELLO_COMMAND) {
} else if (command == TS_HELLO_COMMAND || command == 'Q') {
// We interpret 'Q' as TS_HELLO_COMMAND, since TS uses hardcoded 'Q' during ECU detection (scan all serial ports)
efiPrintf("Got naked Query command");
handleQueryCommand(tsChannel, TS_PLAIN);
return true;