Unable to read string the UART
I'm brand new to the microchip forums and this is my first post :)
I'm trying to read a particular string through UART5 and write the EXACT same string through UART6. I've used the MCC to configure all of my pins. I keep getting this particular error "warning: comparison between pointer and integer" on the UART5_Read line. Does anyone have any ideas or has anyone read a string through UART before? Any help and advice is much appreciated! PIC is PIC24FJ256GA406.
char message = "$DBS,,f,00depth,M,,,F*hh<CR><LF>";
if (UART5_Read == (message =='$' && message == 'D' && message == 'B' && message == 'S'))