Commit c374e913 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

msp430 i2c: clear TXIFG after sending the last byte

parent 8cdcdcf7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ signed char I2C::xmit(unsigned char address,
			UCB0TXBUF = tx_buf[i];
		}
		while (!(UCB0IFG & (UCTXIFG0 | UCNACKIFG | UCCLTOIFG)));
		UCB0IFG &= ~(UCTXIFG0 | UCNACKIFG);
		//if (UCB0IFG & (UCNACKIFG | UCCLTOIFG)) {
		//	UCB0IFG &= ~UCNACKIFG;
		//	UCB0IFG &= ~UCCLTOIFG;