From 3c5b4d054fc5067655c2001e0cfb9e1186a5ae15 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Sun, 15 Apr 2012 21:50:12 +0200 Subject: [PATCH] win32: sync vs2010 projects and wrong param when starting the bootloader --- project/libcec.vcxproj | 7 ++++++- project/libcec.vcxproj.filters | 17 ++++++++++++++++- src/lib/CECProcessor.cpp | 2 +- src/lib/LibCEC.cpp | 2 +- 4 files changed, 24 insertions(+), 4 deletions(-) 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); -- 2.34.1