From: Lars Op den Kamp Date: Wed, 29 Feb 2012 00:08:29 +0000 (+0100) Subject: cec: fix linux compilation after the last commit X-Git-Tag: upstream/2.2.0~1^2~33^2~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b76619e88791038650733b4166d32379b1e11395;p=deb_libcec.git cec: fix linux compilation after the last commit --- diff --git a/src/lib/LibCEC.cpp b/src/lib/LibCEC.cpp index 5b8bb3c..b36d254 100644 --- a/src/lib/LibCEC.cpp +++ b/src/lib/LibCEC.cpp @@ -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();