From 3055c1efa3c6980c864f661e6c8cc5d5ac773af4 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Thu, 11 Jun 2020 17:12:12 +0200 Subject: Wire: apply last suggested comment from @matthijskooijman --- libraries/Wire/src/utility/twi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libraries/Wire') diff --git a/libraries/Wire/src/utility/twi.c b/libraries/Wire/src/utility/twi.c index 5539633..e8a41a2 100644 --- a/libraries/Wire/src/utility/twi.c +++ b/libraries/Wire/src/utility/twi.c @@ -419,7 +419,7 @@ void twi_stop(void) while(TWCR & _BV(TWSTO)){ if(twi_timeout_us > 0ul){ if (counter > 0ul){ - _delay_us(10); + _delay_us(us_per_loop); counter--; } else { twi_handleTimeout(twi_do_reset_on_timeout); -- cgit v1.2.3-18-g5258