support colon separated data for the 'tx' command in cec-client
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 14 Nov 2012 15:52:32 +0000 (16:52 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 14 Nov 2012 15:52:32 +0000 (16:52 +0100)
src/testclient/main.cpp

index 945935afc86d9946feb9ff36f1ebc039fc3efbf3..bb6e133b8417c22eefa331f62a92d1e5ccb42a1b 100644 (file)
@@ -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);