Improve documentation for the ADC and TWI drivers.
[pub/USBasp.git] / LUFA / Drivers / Peripheral / TWI.c
index 7986679..9e0c20d 100644 (file)
@@ -17,7 +17,7 @@ bool TWI_StartTransmission(uint8_t SlaveAddress, uint8_t TimeoutMS)
                TWCR = ((1 << TWINT) | (1 << TWSTA) | (1 << TWEN));     \r
 \r
                TimeoutRemaining = (TimeoutMS * 100);\r
-               while (TimeoutRemaining-- && !BusCaptured)\r
+               while (TimeoutRemaining-- && !(BusCaptured))\r
                {\r
                        if (TWCR & (1 << TWINT))\r
                        {\r