mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
fixed z1 i2c bug where 2 extra bytes were read with every i2c-receive
This commit is contained in:
parent
12dd138915
commit
f4976140fc
@ -214,7 +214,6 @@ ISR(USCIAB1TX, i2c_tx_interrupt)
|
||||
{
|
||||
// TX Part
|
||||
if (UC1IFG & UCB1TXIFG) { // TX int. condition
|
||||
PRINTFDEBUG("!!! TX int\n");
|
||||
if (tx_byte_ctr == 0) {
|
||||
UCB1CTL1 |= UCTXSTP; // I2C stop condition
|
||||
UC1IFG &= ~UCB1TXIFG; // Clear USCI_B1 TX int flag
|
||||
|
Loading…
Reference in New Issue
Block a user