shutter: Fix address detection for the H61 protocol.
authorWerner Koch <wk@gnupg.org>
Sun, 27 Nov 2011 19:14:14 +0000 (20:14 +0100)
committerWerner Koch <wk@gnupg.org>
Sun, 27 Nov 2011 19:14:46 +0000 (20:14 +0100)
ebus/shutter.c

index 80f0b3f..66438f1 100644 (file)
@@ -507,7 +507,7 @@ process_ebus_h61 (byte *msg)
 {
   char is_response = !!(msg[5] & P_H61_RESPMASK);
 
-  if (!(msg[1] == config.nodeid_hi || msg[2] == config.nodeid_lo))
+  if (!(msg[1] == config.nodeid_hi && msg[2] == config.nodeid_lo))
     return; /* Not addressed to us.  */
 
   switch ((msg[5] & ~P_H61_RESPMASK))