]> git.zerfleddert.de Git - rsbs2/blobdiff - bmc/i2c.c
fix TWSTO thinko in i2c.c
[rsbs2] / 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));
-       while(!(TWCR & (1<<TWSTO))) {}
+       while(TWCR & (1<<TWSTO)) {}
 
-#if 1
-       /* Timing problem... */
+#ifdef DEBUG
        printf("I2C Data sent\n");
 #endif
 
Impressum, Datenschutz