ebus: Fix i2c address sending.
authorWerner Koch <wk@gnupg.org>
Sun, 12 Aug 2012 16:12:33 +0000 (18:12 +0200)
committerWerner Koch <wk@gnupg.org>
Sun, 12 Aug 2012 16:12:33 +0000 (18:12 +0200)
ebus/i2c.c

index 173ba48..ee4639b 100644 (file)
@@ -133,7 +133,7 @@ byte
 i2c_start_mt (byte address)
 {
   /* We need to send an SLA+W; thus clear the LSB.  */
-  address &= 0xf7;
+  address &= 0xfe;
 
   if (send_start ())
     {