Fix typo in rejecting invalid keycodes
authorpopcornmix <popcornmix@gmail.com>
Fri, 24 Oct 2014 12:22:57 +0000 (13:22 +0100)
committerpopcornmix <popcornmix@gmail.com>
Fri, 24 Oct 2014 12:30:06 +0000 (13:30 +0100)
src/lib/CECClient.cpp

index 85df46d376859c9c24575abb175b110202af7a90..837214f456f54e724c29032664087064875874f9 100644 (file)
@@ -995,7 +995,7 @@ void CCECClient::AddKey(bool bSendComboKey /* = false */)
 
 void CCECClient::AddKey(const cec_keypress &key)
 {
 
 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
       key.keycode < CEC_USER_CONTROL_CODE_SELECT)
   {
     // send back the previous key if there is one