]> cvs.zerfleddert.de Git - rsbs2/commitdiff
fix TWSTO thinko in i2c.c
authorMichael Gernoth <michael@gernoth.net>
Sun, 22 Aug 2010 22:35:30 +0000 (00:35 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sun, 22 Aug 2010 22:35:30 +0000 (00:35 +0200)
bmc/i2c.c

index e479fd32e50092ca5ceef796913a881a603d2c3a..da578b9e8fce82cec56ed1575ab658fcccf8a573 100644 (file)
--- a/bmc/i2c.c
+++ b/bmc/i2c.c
@@ -55,10 +55,9 @@ void i2c_send(unsigned char *buf, int len)
        }
 
        TWCR = ((1<<TWINT) | (1<<TWEN) | (1<<TWSTO));
        }
 
        TWCR = ((1<<TWINT) | (1<<TWEN) | (1<<TWSTO));
-       while(!(TWCR & (1<<TWSTO))) {}
+       while(TWCR & (1<<TWSTO)) {}
 
 
-#if 1
-       /* Timing problem... */
+#ifdef DEBUG
        printf("I2C Data sent\n");
 #endif
 
        printf("I2C Data sent\n");
 #endif
 
Impressum, Datenschutz