From 44f8698d3e1330cdab1b9c095bbdbd5afc994f67 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Wed, 20 Oct 2021 12:40:37 -0700 Subject: [PATCH] respond to 'Q' (#3382) --- firmware/console/binary/tunerstudio.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index 1da1520511..68867ff845 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -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;