parent
c561fae005
commit
7cba09b3fa
|
@ -678,14 +678,13 @@ static void handleGetText(ts_channel_s *tsChannel) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handleExecuteCommand(ts_channel_s *tsChannel, char *data, int incomingPacketSize) {
|
static void handleExecuteCommand(ts_channel_s *tsChannel, char *data, int incomingPacketSize) {
|
||||||
|
sr5WriteCrcPacket(tsChannel, TS_RESPONSE_COMMAND_OK, nullptr, 0);
|
||||||
data[incomingPacketSize] = 0;
|
data[incomingPacketSize] = 0;
|
||||||
char *trimmed = efiTrim(data);
|
char *trimmed = efiTrim(data);
|
||||||
#if EFI_SIMULATOR
|
#if EFI_SIMULATOR
|
||||||
logMsg("execute [%s]\r\n", trimmed);
|
logMsg("execute [%s]\r\n", trimmed);
|
||||||
#endif
|
#endif
|
||||||
(console_line_callback)(trimmed);
|
(console_line_callback)(trimmed);
|
||||||
|
|
||||||
sr5WriteCrcPacket(tsChannel, TS_RESPONSE_COMMAND_OK, nullptr, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue