From: Lars Op den Kamp Date: Fri, 14 Oct 2011 08:21:17 +0000 (+0200) Subject: cec: add 'txn' command to cec-client. same as 'tx', but doesn't wait for ACK before... X-Git-Tag: upstream/2.2.0~1^2~233 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=faa6a23b5900133cac7585bd4b36f17f95c6ff42;p=deb_libcec.git cec: add 'txn' command to cec-client. same as 'tx', but doesn't wait for ACK before returning --- 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") {