cec: split up buffer and comm mutex again in CAdapterCommunication
[deb_libcec.git] / src / lib / CECProcessor.cpp
index 964f359bce3d11f875f9ea1d1863290d2c292451..0e991848b821cbc1b877983d36409c8103727888 100644 (file)
@@ -110,7 +110,7 @@ void *CCECProcessor::Process(void)
     m_controller->CheckKeypressTimeout();
 
     if (!IsStopped())
-      Sleep(50);
+      Sleep(5);
   }
 
   return NULL;
@@ -241,8 +241,6 @@ bool CCECProcessor::TransmitFormatted(const cec_frame &data, bool bWaitForAck /*
   if (!m_communication || !m_communication->Write(data))
     return false;
 
-  CCondition::Sleep((uint32_t) data.size * (uint32_t)24 /*data*/ + (uint32_t)5 /*start bit (4.5 ms)*/);
-
   if (bWaitForAck)
   {
     uint64_t now = GetTimeMs();