fixed z1 i2c bug where 2 extra bytes were read with every i2c-receive

This commit is contained in:
Jelmer Tiete 2013-01-30 14:23:07 +01:00
parent 12dd138915
commit f4976140fc

View file

@ -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