mirror of https://github.com/contiki-ng/mspsim
Bugfix: only send i2c acks if i2c mode is enabled
This commit is contained in:
parent
b5985a4f47
commit
8efdbba5c5
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue