From faa6a23b5900133cac7585bd4b36f17f95c6ff42 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Fri, 14 Oct 2011 10:21:17 +0200 Subject: [PATCH] cec: add 'txn' command to cec-client. same as 'tx', but doesn't wait for ACK before returning --- src/testclient/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/testclient/main.cpp b/src/testclient/main.cpp index 33ee463..1d9f4a9 100644 --- a/src/testclient/main.cpp +++ b/src/testclient/main.cpp @@ -168,6 +168,7 @@ void show_console_help(void) "Available commands:" << endl << endl << "tx {bytes} transfer bytes over the CEC line." << endl << + "txn {bytes} transfer bytes and don't wait for an ACK reply." << endl << "[tx 40 00 FF 11 22 33] sends bytes 0x40 0x00 0xFF 0x11 0x22 0x33" << endl << endl << "on {address} power on the device with the given logical address." << endl << @@ -278,7 +279,7 @@ int main (int argc, char *argv[]) string command; if (GetWord(input, command)) { - if (command == "tx") + if (command == "tx" || command == "txn") { string strvalue; uint8_t ivalue; @@ -288,7 +289,7 @@ int main (int argc, char *argv[]) while (GetWord(input, strvalue) && HexStrToInt(strvalue, ivalue)) bytes.push_back(ivalue); - parser->Transmit(bytes); + parser->Transmit(bytes, command == "tx"); } else if (command == "on") { -- 2.34.1