Improve documentation for the ADC and TWI drivers.

This commit is contained in:
Dean Camera 2010-03-15 05:38:29 +00:00
parent 4f9dd142e7
commit b2bdfe4377
2 changed files with 10 additions and 2 deletions

View file

@ -17,7 +17,7 @@ bool TWI_StartTransmission(uint8_t SlaveAddress, uint8_t TimeoutMS)
TWCR = ((1 << TWINT) | (1 << TWSTA) | (1 << TWEN));
TimeoutRemaining = (TimeoutMS * 100);
while (TimeoutRemaining-- && !BusCaptured)
while (TimeoutRemaining-- && !(BusCaptured))
{
if (TWCR & (1 << TWINT))
{