Code: Select all
int GPS_Week;
void GPS_Time(char * TSIP_Packet)
{
char msg[7];
LCD_Cmd(Lcd_CLEAR); // Clear display
LCD_Out_Cp_Const("Week Number");
TSIP_Packet += 4; // Ignore the first 4 bytes (GPS time of week, single)
GPS_Week = * TSIP_Packet; // needs to be cast to an int
IntToStr(GPS_Week, &msg);
LCD_Out(2,1,&msg);
}