X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FSLCommandHandler.cpp;h=4a9d19e3c5640e8b17edb474d81c6ebd767e8cb1;hb=ae693aaa8545b853946bf490dd0444c5862bafb9;hp=bf3ee43006bdf6db6126abc2a3e52012b8d4217e;hpb=7f9191154db80ab386da77ef6706961d9fbc8b97;p=deb_libcec.git diff --git a/src/lib/implementations/SLCommandHandler.cpp b/src/lib/implementations/SLCommandHandler.cpp index bf3ee43..4a9d19e 100644 --- a/src/lib/implementations/SLCommandHandler.cpp +++ b/src/lib/implementations/SLCommandHandler.cpp @@ -201,6 +201,11 @@ bool CSLCommandHandler::InitHandler(void) m_busDevice->GetProcessor()->SetStandardLineTimeout(3); m_busDevice->GetProcessor()->SetRetryLineTimeout(3); + /* increase the number of retries because the tv is keeping the bus busy at times */ + m_iTransmitWait = 2000; + m_iTransmitRetries = 4; + m_iTransmitTimeout = 500; + CCECBusDevice *primary = m_busDevice->GetProcessor()->m_busDevices[m_busDevice->GetProcessor()->GetLogicalAddresses().primary]; if (m_busDevice->GetLogicalAddress() != primary->GetLogicalAddress()) primary->SetVendorId(CEC_VENDOR_LG, false); @@ -224,9 +229,6 @@ bool CSLCommandHandler::InitHandler(void) snprintf(lang.language, 4, "eng"); m_busDevice->SetMenuLanguage(lang); - /* increase the transmit timeout because the tv is keeping the bus busy at times */ - m_iTransmitTimeout = 5000; - if (m_busDevice->GetLogicalAddress() == CECDEVICE_TV) { /* LG TVs only route keypresses when the deck status is set to 0x20 */