fixed: don't stick a value larger than 255 in a byte
[deb_libcec.git] / src / lib / CECClient.cpp
index 837214f456f54e724c29032664087064875874f9..12ca4ceb753c4bda0a2cf9c94969502372dd9d8c 100644 (file)
@@ -1466,7 +1466,7 @@ void CCECClient::CallbackAddKey(const cec_keypress &key)
     int64_t now = GetTimeMs();
     if (m_lastKeypress.keycode != key.keycode ||
         key.duration > 0 ||
-        now - m_iLastKeypressTime >= m_configuration.iDoubleTapTimeoutMs)
+        now - m_iLastKeypressTime >= m_configuration.iDoubleTapTimeoutMs * DOUBLE_TAP_TIMEOUT_UNIT_SIZE)
     {
       // no double tap
       if (key.duration == 0)