repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: fix device polling
[deb_libcec.git]
/
src
/
lib
/
CECProcessor.cpp
diff --git
a/src/lib/CECProcessor.cpp
b/src/lib/CECProcessor.cpp
index 6aad7e90f2ffff185cdece38c053370b5a758e48..618cd9aeca6585f6995492c6a54acd2ad7ae9a4e 100644
(file)
--- a/
src/lib/CECProcessor.cpp
+++ b/
src/lib/CECProcessor.cpp
@@
-158,7
+158,7
@@
bool CCECProcessor::Start(const char *strPort, uint16_t iBaudRate /* = 38400 */,
if (SetAckMask(m_logicalAddresses.AckMask()) &&
SetHDMIPort(m_iBaseDevice, m_iHDMIPort, true))
{
if (SetAckMask(m_logicalAddresses.AckMask()) &&
SetHDMIPort(m_iBaseDevice, m_iHDMIPort, true))
{
- m_controller->AddLog(CEC_LOG_
ERROR
, "processor thread started");
+ m_controller->AddLog(CEC_LOG_
DEBUG
, "processor thread started");
m_busScan = new CCECBusScan(this);
m_busScan->CreateThread(true);
return true;
m_busScan = new CCECBusScan(this);
m_busScan->CreateThread(true);
return true;
@@
-1287,12
+1287,12
@@
const char *CCECProcessor::ToString(const cec_vendor_id vendor)
void *CCECBusScan::Process(void)
{
CCECBusDevice *device(NULL);
void *CCECBusScan::Process(void)
{
CCECBusDevice *device(NULL);
- int iCount(0);
+ int iCount(
5
0);
while (!IsStopped())
{
if (iCount == 0)
{
while (!IsStopped())
{
if (iCount == 0)
{
- for (unsigned int iPtr = 0; iPtr <
15
&& !IsStopped(); iPtr++)
+ for (unsigned int iPtr = 0; iPtr <
= 11
&& !IsStopped(); iPtr++)
{
device = m_processor->m_busDevices[iPtr];
if (device && device->GetStatus(true) == CEC_DEVICE_STATUS_PRESENT)
{
device = m_processor->m_busDevices[iPtr];
if (device && device->GetStatus(true) == CEC_DEVICE_STATUS_PRESENT)