X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FLibCEC.cpp;h=3230e684d9779aaa21e068932b9fb2be0ec0d274;hb=46dfe6c479beeded3b4df937567ff93ec94cc0a8;hp=0eca6a2c5e9b5eaf2cb1f8f24ed7c81bc5e0e33d;hpb=a75e3a5a63546d6f7e670bc2a7a1931887a5d2a0;p=deb_libcec.git diff --git a/src/lib/LibCEC.cpp b/src/lib/LibCEC.cpp index 0eca6a2..3230e68 100644 --- a/src/lib/LibCEC.cpp +++ b/src/lib/LibCEC.cpp @@ -510,7 +510,7 @@ bool CECStartBootloader(void) { CUSBCECAdapterCommunication comm(NULL, deviceList[0].comm); CTimeout timeout(10000); - while (timeout.TimeLeft() > 0 && (bReturn = comm.Open(NULL, (timeout.TimeLeft() / CEC_CONNECT_TRIES)), true) == false) + while (timeout.TimeLeft() > 0 && (bReturn = comm.Open(timeout.TimeLeft() / CEC_CONNECT_TRIES, true)) == false) { comm.Close(); CEvent::Sleep(500);