From f1f5731982c4a545a4d561fb7def1014bb648e34 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Fri, 24 Oct 2014 13:22:57 +0100 Subject: [PATCH] Fix typo in rejecting invalid keycodes --- src/lib/CECClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/CECClient.cpp b/src/lib/CECClient.cpp index 85df46d..837214f 100644 --- a/src/lib/CECClient.cpp +++ b/src/lib/CECClient.cpp @@ -995,7 +995,7 @@ void CCECClient::AddKey(bool bSendComboKey /* = false */) void CCECClient::AddKey(const cec_keypress &key) { - if (key.keycode > CEC_USER_CONTROL_CODE_MAX && + if (key.keycode > CEC_USER_CONTROL_CODE_MAX || key.keycode < CEC_USER_CONTROL_CODE_SELECT) { // send back the previous key if there is one -- 2.34.1