mirror of https://github.com/rusefi/rusefi-1.git
respond to 'Q' (#3382)
This commit is contained in:
parent
d008b0f8c3
commit
44f8698d3e
|
@ -658,11 +658,10 @@ static void handleExecuteCommand(TsChannelBase* tsChannel, char *data, int incom
|
||||||
*/
|
*/
|
||||||
bool handlePlainCommand(TsChannelBase* tsChannel, uint8_t command) {
|
bool handlePlainCommand(TsChannelBase* tsChannel, uint8_t command) {
|
||||||
// Bail fast if guaranteed not to be a plain command
|
// Bail fast if guaranteed not to be a plain command
|
||||||
if (command == 0)
|
if (command == 0) {
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
} else if (command == TS_HELLO_COMMAND || command == 'Q') {
|
||||||
else if (command == TS_HELLO_COMMAND) {
|
// We interpret 'Q' as TS_HELLO_COMMAND, since TS uses hardcoded 'Q' during ECU detection (scan all serial ports)
|
||||||
efiPrintf("Got naked Query command");
|
efiPrintf("Got naked Query command");
|
||||||
handleQueryCommand(tsChannel, TS_PLAIN);
|
handleQueryCommand(tsChannel, TS_PLAIN);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue