cec: some more cleanups. increase the number of retries for LG devices because they...
[deb_libcec.git] / src / lib / implementations / SLCommandHandler.cpp
index bf3ee43006bdf6db6126abc2a3e52012b8d4217e..4a9d19e3c5640e8b17edb474d81c6ebd767e8cb1 100644 (file)
@@ -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 */