Skip to content

Commit 3fa390c

Browse files
Roy, Elizabethfacchinm
Roy, Elizabeth
authored andcommitted
Small bugfix for TWI_MasterReadHandler
1 parent 5ad7870 commit 3fa390c

File tree

1 file changed

+2
-0
lines changed
  • libraries/Wire/src/utility

1 file changed

+2
-0
lines changed

libraries/Wire/src/utility/twi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,8 @@ void TWI_MasterReadHandler()
448448
}
449449

450450
TWI_MasterTransactionFinished(TWIM_RESULT_BUFFER_OVERFLOW);
451+
master_bytesToRead = 0;
452+
return;
451453
}
452454

453455
/* Local variable used in if test to avoid compiler warning. */

0 commit comments

Comments
 (0)