Code: Select all
GPSin==UART2_Read(); //store chracter of GPS data
The double equal sign "==" is the logical test for equality i.e. if x equals y then do something, or in code... if (x == Y) count++;.
A single equal sign "=" is the assignment operator i.e. X is assigned the value of 16, or in code... X = 16;
So...
Code: Select all
GPSin==UART2_Read();
Code: Select all
GPSin = UART2_Read();