cec: set initiator and destination first in cec_command::push_back(). fixes 'tx'...
[deb_libcec.git] / src / testclient / main.cpp
index dc20968dd60952bc7f3e42366a58cb770c95669f..33ee463cb4c8b31a11a70a23f135229cb98f18dc 100644 (file)
@@ -30,7 +30,7 @@
  *     http://www.pulse-eight.net/
  */
 
-#include <libcec/CECExports.h>
+#include <cec.h>
 
 #include <cstdio>
 #include <fcntl.h>
@@ -45,7 +45,7 @@ using namespace std;
 
 #define CEC_TEST_CLIENT_VERSION 7
 
-#include <libcec/CECLoader.h>
+#include <cecloader.h>
 
 inline bool HexStrToInt(const std::string& data, uint8_t& value)
 {
@@ -286,7 +286,7 @@ int main (int argc, char *argv[])
           bytes.clear();
 
           while (GetWord(input, strvalue) && HexStrToInt(strvalue, ivalue))
-          bytes.push_back(ivalue);
+            bytes.push_back(ivalue);
 
           parser->Transmit(bytes);
         }