using namespace CEC;
using namespace std;
-#define CEC_TEST_CLIENT_VERSION 2
+#define CEC_TEST_CLIENT_VERSION 3
void flush_log(ICECDevice *cecParser)
{
cout << "cec device opened" << endl;
usleep(CEC_SETTLE_DOWN_TIME);
- parser->PowerOnDevices();
+ parser->PowerOnDevices(CECDEVICE_TV);
flush_log(parser);
parser->SetActiveView();
CCondition::Sleep(50);
}
- parser->PowerOffDevices();
+ parser->PowerOffDevices(CECDEVICE_BROADCAST);
+ parser->Close();
flush_log(parser);
UnloadLibCec(parser);
return 0;