All UART_ID references should be XBEE_UART_ID, and should be defined at the top.