+ if (iFirmwareVersion >= 2)
+ {
+ /* try to set controlled mode */
+ while (bConnected && iNow < iTarget && (bControlled = m_communication->SetControlledMode(true)) == false)
+ {
+ CLibCEC::AddLog(CEC_LOG_ERROR, "the adapter did not respond correctly to setting controlled mode (try %d)", ++iControlledTry);
+ Sleep(500);
+ iNow = GetTimeMs();
+ }
+ }
+