| | |
| | | if(gga_num<10&&!gps_open_flag) |
| | | { |
| | | gps_timeout_flag=0; |
| | | snprintf(GGA_Format_message, sizeof(GGA_Format_message), "%s,%04x,%02u%%,%d,%d,0,0\r\n", \ |
| | | snprintf(GGA_Format_message, sizeof(GGA_Format_message), "%s,%04x,%x,%d,%d,0,0\r\n", \ |
| | | GPS_GGAmessage,g_com_map[DEV_ID],bat_percent,userkey_state,gps_timeout_flag); |
| | | datalenth_gga = sprintf((char*)&GGA_Final_message[u32GGaLenth],"%s",GGA_Format_message); |
| | | u32GGaLenth += datalenth_gga; |
| | |
| | | |
| | | |
| | | //gps_power_state=0;//关闭gps |
| | | if(gps_open_flag){ |
| | | //if(gps_open_flag&&!gps_first_flag){ |
| | | // if(gps_open_flag){ |
| | | if(gps_open_flag&&!gps_first_flag){ |
| | | |
| | | // delay_ms(1000); |
| | | delay_ms(1000); |
| | | gps_timeout_flag=0;//不超时接收状态 |
| | | gps_need_data_flag=0;//接收数据完成 |
| | | gps_wait_count=0;//清0接收状态 |