From: Lars Op den Kamp Date: Wed, 25 Jul 2012 10:03:44 +0000 (+0200) Subject: fixed typo in CUSBCECAdapterCommunication X-Git-Tag: upstream/2.2.0~1^2~20^2^2~5 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=6a581708f22be7d31ab7aa7242067b35d3540913 fixed typo in CUSBCECAdapterCommunication --- diff --git a/src/lib/adapter/Pulse-Eight/USBCECAdapterCommunication.cpp b/src/lib/adapter/Pulse-Eight/USBCECAdapterCommunication.cpp index e4806e8..fb16fe9 100644 --- a/src/lib/adapter/Pulse-Eight/USBCECAdapterCommunication.cpp +++ b/src/lib/adapter/Pulse-Eight/USBCECAdapterCommunication.cpp @@ -260,8 +260,9 @@ void *CUSBCECAdapterCommunication::Process(void) // check if we need to do another eeprom write { CLockObject lock(m_mutex); - uint64_t iNow = GetTimeMs(); - if (m_iScheduleEepromWrite > 0 && m_iScheduleEepromWrite >= iNow) + int64_t iNow = GetTimeMs(); + if (m_iScheduleEepromWrite > 0 && + m_iScheduleEepromWrite >= iNow) { m_iScheduleEepromWrite = 0; m_iLastEepromWrite = iNow; diff --git a/src/lib/adapter/Pulse-Eight/USBCECAdapterCommunication.h b/src/lib/adapter/Pulse-Eight/USBCECAdapterCommunication.h index a14b3a5..5b065f3 100644 --- a/src/lib/adapter/Pulse-Eight/USBCECAdapterCommunication.h +++ b/src/lib/adapter/Pulse-Eight/USBCECAdapterCommunication.h @@ -172,8 +172,8 @@ namespace CEC CUSBCECAdapterCommands * m_commands; /**< commands that can be sent to the adapter */ CCECAdapterMessageQueue * m_adapterMessageQueue; /**< the incoming and outgoing message queue */ cec_logical_addresses m_logicalAddresses; /**< the logical address list that this instance is using */ - uint64_t m_iLastEepromWrite; /**< last time that this instance did an eeprom write */ - bool m_iScheduleEepromWrite; /**< in case there were more than 2 changes within 30 seconds, do another write at this time */ + int64_t m_iLastEepromWrite; /**< last time that this instance did an eeprom write */ + int64_t m_iScheduleEepromWrite; /**< in case there were more than 2 changes within 30 seconds, do another write at this time */ }; class CAdapterPingThread : public PLATFORM::CThread