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 3fc5fb8 commit 157688aCopy full SHA for 157688a
libraries/Wire/src/utility/twi.c
@@ -443,11 +443,9 @@ void twi_setTimeoutInMicros(uint32_t timeout)
443
*/
444
void twi_handleTimeout(void)
445
{
446
- // remember the bitrate register value
+ // remember bitrate and address settings
447
uint8_t previous_TWBR = TWBR;
448
-
449
- // remember the address register value
450
- uint8_t previous_TWAR = TWBR;
+ uint8_t previous_TWAR = TWAR;
451
452
// reset the interface
453
twi_disable();
@@ -622,4 +620,3 @@ ISR(TWI_vect)
622
620
break;
623
621
}
624
625
0 commit comments