cec: include the ack timeout in the cec_command struct
[deb_libcec.git] / src / testclient / main.cpp
index 867501d55041f1e68ecc4e28bc9cb6d4c8ccf2cb..9cb32bf167849d06a829aa5256a421a8ff31629b 100644 (file)
@@ -404,7 +404,10 @@ int main (int argc, char *argv[])
           while (GetWord(input, strvalue) && HexStrToInt(strvalue, ivalue))
             bytes.push_back(ivalue);
 
-          parser->Transmit(bytes, command == "tx");
+          if (command == "txn")
+            bytes.ack_timeout = 0;
+
+          parser->Transmit(bytes);
         }
         else if (command == "on")
         {