We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9929dc commit 849c97cCopy full SHA for 849c97c
libraries/Wire/src/utility/twi.c
@@ -404,7 +404,7 @@ void twi_stop(void)
404
405
// wait for stop condition to be exectued on bus
406
// TWINT is not set after a stop condition!
407
- uint32_t counter = 0;
+ volatile uint32_t counter = 0;
408
while(TWCR & _BV(TWSTO)){
409
counter++;
410
if((twi_timeout_us > 0ul) && (counter >= 25000)) {
0 commit comments