Improve documentation for the ADC and TWI drivers.
This commit is contained in:
parent
4f9dd142e7
commit
b2bdfe4377
2 changed files with 10 additions and 2 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue