mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-03 22:06:22 +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
|
// TX Part
|
||||||
if (UC1IFG & UCB1TXIFG) { // TX int. condition
|
if (UC1IFG & UCB1TXIFG) { // TX int. condition
|
||||||
PRINTFDEBUG("!!! TX int\n");
|
|
||||||
if (tx_byte_ctr == 0) {
|
if (tx_byte_ctr == 0) {
|
||||||
UCB1CTL1 |= UCTXSTP; // I2C stop condition
|
UCB1CTL1 |= UCTXSTP; // I2C stop condition
|
||||||
UC1IFG &= ~UCB1TXIFG; // Clear USCI_B1 TX int flag
|
UC1IFG &= ~UCB1TXIFG; // Clear USCI_B1 TX int flag
|
||||||
|
Loading…
Reference in New Issue
Block a user