fixed typo in CUSBCECAdapterCommunication
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 25 Jul 2012 10:03:44 +0000 (12:03 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 25 Jul 2012 10:31:09 +0000 (12:31 +0200)
src/lib/adapter/Pulse-Eight/USBCECAdapterCommunication.cpp
src/lib/adapter/Pulse-Eight/USBCECAdapterCommunication.h

index e4806e88e1586aeb3c90c5672b1a0b07f667056c..fb16fe998321a57f18c42a657b3e81905228e6ff 100644 (file)
@@ -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;
index a14b3a5d85b7f463b1459ae85a09a1b8a64985c6..5b065f30c910c7026bca1b0e64b48cd3c3e961f2 100644 (file)
@@ -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