tp-freeforall/prod — pull request #26 by azeey (2013-12-20 17:54:18+00:00)
Title: Fixed a bug in the MSP430 I2C driver

If the CPU is slow or running in debug mode, the timing works out in such a way
that the interrupt for the very last byte doesn't trigger. This seems to happen
because setTxStop is called right before the last byte which causes the
hardware to proceed with receiving the last byte instead of waiting until the
one-before-last byte is read from the RX buffer. The interrupt flag actually
gets set, but the CPU doesn't get interrupted. Thus, we can check the flag and
read the last byte, if it's available.