Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment