From 98961e122cd2ed92a939ab9b20d9a4ffac01d675 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Wed, 14 Nov 2012 16:52:32 +0100 Subject: [PATCH] support colon separated data for the 'tx' command in cec-client --- src/testclient/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/testclient/main.cpp b/src/testclient/main.cpp index 945935a..bb6e133 100644 --- a/src/testclient/main.cpp +++ b/src/testclient/main.cpp @@ -381,6 +381,10 @@ bool ProcessCommandTX(ICECAdapter *parser, const string &command, string &argume cec_command bytes; bytes.Clear(); + CStdString strArguments(arguments); + strArguments.Replace(':', ' '); + arguments = strArguments; + while (GetWord(arguments, strvalue) && HexStrToInt(strvalue, ivalue)) bytes.PushBack(ivalue); -- 2.34.1