From d956c02e62e94806340bac2260daba9992eeafb4 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Thu, 12 Jan 2012 12:41:05 +0100 Subject: [PATCH] cec: rewrote an assignment within a condition, so the silly vs compiler understands it too. fixes win32 compilation --- src/lib/AdapterCommunication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/AdapterCommunication.cpp b/src/lib/AdapterCommunication.cpp index d33ad2f..8d351f0 100644 --- a/src/lib/AdapterCommunication.cpp +++ b/src/lib/AdapterCommunication.cpp @@ -286,7 +286,7 @@ bool CAdapterCommunication::Open(const char *strPort, uint16_t iBaudRate /* = 38 bool bConnected(false); while (!bConnected && iNow < iTimeout) { - if (!(bConnected = m_port->Open(strPort, iBaudRate))) + if ((bConnected = m_port->Open(strPort, iBaudRate)) == false) { strError.Format("error opening serial port '%s': %s", strPort, m_port->GetError().c_str()); Sleep(250); -- 2.34.1