From: Lars Op den Kamp Date: Sun, 15 Apr 2012 19:50:12 +0000 (+0200) Subject: win32: sync vs2010 projects and wrong param when starting the bootloader X-Git-Tag: upstream/2.2.0~1^2~31^2~5^2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3c5b4d054fc5067655c2001e0cfb9e1186a5ae15;p=deb_libcec.git win32: sync vs2010 projects and wrong param when starting the bootloader --- diff --git a/project/libcec.vcxproj b/project/libcec.vcxproj index 5b3c6f0..aed370c 100644 --- a/project/libcec.vcxproj +++ b/project/libcec.vcxproj @@ -24,9 +24,11 @@ + + @@ -56,8 +58,11 @@ + + + @@ -239,4 +244,4 @@ - + \ No newline at end of file diff --git a/project/libcec.vcxproj.filters b/project/libcec.vcxproj.filters index 50ae8df..fdd9df3 100644 --- a/project/libcec.vcxproj.filters +++ b/project/libcec.vcxproj.filters @@ -131,6 +131,12 @@ implementations + + adapter + + + adapter + @@ -182,8 +188,17 @@ implementations + + adapter + + + adapter + + + adapter + - + \ No newline at end of file diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index e957a37..a8f40c5 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -1480,7 +1480,7 @@ bool CCECProcessor::StartBootloader(const char *strPort /* = NULL */) IAdapterCommunication *comm = new CUSBCECAdapterCommunication(this, strPort); CTimeout timeout(10000); int iConnectTry(0); - 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) { CLibCEC::AddLog(CEC_LOG_ERROR, "could not open a connection (try %d)", ++iConnectTry); comm->Close(); 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);