Commit 3055c1ef authored by Martino Facchin's avatar Martino Facchin

Wire: apply last suggested comment from @matthijskooijman

parent e4611a15
...@@ -419,7 +419,7 @@ void twi_stop(void) ...@@ -419,7 +419,7 @@ void twi_stop(void)
while(TWCR & _BV(TWSTO)){ while(TWCR & _BV(TWSTO)){
if(twi_timeout_us > 0ul){ if(twi_timeout_us > 0ul){
if (counter > 0ul){ if (counter > 0ul){
_delay_us(10); _delay_us(us_per_loop);
counter--; counter--;
} else { } else {
twi_handleTimeout(twi_do_reset_on_timeout); twi_handleTimeout(twi_do_reset_on_timeout);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment