Hi.
Have this peace who is bugging me,
if ((first_BT_data==UART_Buffer0) || (!RC1IF))
As i asume, first_BT_data is integer,, and need to compare ti UART_Buffer0 that is in HEX, recieved from serial data.
first_BT_data is normal from 0 to 9 and UART_buffer0 is from 0x00 to 0x09 and never higher,
But 5 is not equal to 0x05
How to fix ?
Have this peace who is bugging me,
if ((first_BT_data==UART_Buffer0) || (!RC1IF))
As i asume, first_BT_data is integer,, and need to compare ti UART_Buffer0 that is in HEX, recieved from serial data.
first_BT_data is normal from 0 to 9 and UART_buffer0 is from 0x00 to 0x09 and never higher,
But 5 is not equal to 0x05
How to fix ?