Skip to content

Commit cfb7be1

Browse files
committed
TWI: don't disable interrupt on address matching
Fixes #26
1 parent 39c2112 commit cfb7be1

File tree

1 file changed

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

1 file changed

+0
-3
lines changed

libraries/Wire/src/utility/twi.c

-3
Original file line numberDiff line numberDiff line change
@@ -578,9 +578,6 @@ void TWI_SlaveAddressMatchHandler(){
578578
slave_trans_status = TWIS_STATUS_BUSY;
579579
slave_result = TWIS_RESULT_UNKNOWN;
580580

581-
/* Disable address & stop interrupt */
582-
TWI0.SCTRLA &= ~(TWI_APIEN_bm | TWI_PIEN_bm);
583-
584581
/* Send ACK, wait for data interrupt */
585582
TWI0.SCTRLB = TWI_SCMD_RESPONSE_gc;
586583

0 commit comments

Comments
 (0)