- /* Check if we are sending a data bit, or the start bit */
- if (--TX_BitsRemaining != 9)
- {
- /* Set the TX line to the value of the next bit in the byte to send */
- if (TX_Data & (1 << 0))
- STXPORT &= ~(1 << STX);
- else
- STXPORT |= (1 << STX);
-
- /* Shift the transmission byte to move the next bit into position */
- TX_Data >>= 1;
- }
+ /* Set the TX line to the value of the next bit in the byte to send */
+ if (TX_Data & (1 << 0))
+ STXPORT &= ~(1 << STX);