cec: fix linux compilation after the last commit
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 29 Feb 2012 00:08:29 +0000 (01:08 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 29 Feb 2012 00:08:29 +0000 (01:08 +0100)
src/lib/LibCEC.cpp

index 5b8bb3c6892ab1da82e46f394cbeac7c763f9020..b36d25425d87dd298dc51011023f202b1d49b17d 100644 (file)
@@ -510,11 +510,10 @@ bool CECStartBootloader(void)
   {
     CUSBCECAdapterCommunication comm(NULL, deviceList[0].comm);
     CTimeout timeout(10000);
-    int iConnectTry(0);
     while (timeout.TimeLeft() > 0 && (bReturn = comm.Open(NULL, (timeout.TimeLeft() / CEC_CONNECT_TRIES)), true) == false)
     {
       comm.Close();
-      Sleep(500);
+      CEvent::Sleep(500);
     }
     if (comm.IsOpen())
       bReturn = comm.StartBootloader();