Quote:
|
Originally Posted by Chris Hibner
...(as well as recursion, compound statements, leaving out the {} from code blocks, etc.).
|
Yeah. I know I violated this one. I should have written
Code:
if (Tx_Buffer & 0x01 == 1) {
TX_OUTPUT_PIN = SERIAL_1;
} else {
TX_OUTPUT_PIN = SERIAL_0;
}
(Or is it
Code:
if (Tx_Buffer & 0x01 == 1)
{
TX_OUTPUT_PIN = SERIAL_1;
}
else
{
TX_OUTPUT_PIN = SERIAL_0;
}
?) There are so many opinions about where to place the braces, I decided to leave them out... just this once! I swear!
