Bugfix: only send i2c acks if i2c mode is enabled

This commit is contained in:
Adam Dunkels 2013-08-29 20:17:01 +02:00 committed by Niclas Finne
parent b5985a4f47
commit 8efdbba5c5
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ public class GenericUSCI extends IOUnit implements DMATrigger, USARTSource {
/* For timing issues we have to send the ACK after reading the
* register */
if (!i2cTransmitter) {
if (i2cEnabled && !i2cTransmitter) {
txBuffer.add(I2CData.ACK);
stat |= USCI_BUSY;
if (!transmitting) {