fixed z1 i2c bug where 2 extra bytes were read with every i2c-receive
This commit is contained in:
parent
12dd138915
commit
f4976140fc
1 changed files with 0 additions and 1 deletions
|
@ -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 a new issue