WXK
2025-05-07 8840cff9aa35428f8551024219bc7dea61f4b35c
keil/include/main/main.c
@@ -315,13 +315,13 @@
        flag_secondtask = 1;
           #ifdef UWB_1_5HZ
           uwb_time_count++;
          #endif
           uwb_offtime_count++;
           if(uwb_offtime_count>30)
            {
             uwb_offtime_count=0;
             current_state = STATE_SLEEP;
            }
              #endif
        if(!read_5v_input_pca())
        {
        if(bat_percent>15)
@@ -433,7 +433,7 @@
      }
    g_com_map[MODBUS_MODE] = 0;
      log_4g_enable_flag=g_com_map[LOG_4G_ENABLE];
    g_com_map[VERSION] = (1<<8)|12;
    g_com_map[VERSION] = (1<<8)|13;
         
        
    LOG_INFO(TRACE_MODULE_APP,"设备ID: %x .\r\n",dev_id);
@@ -743,6 +743,9 @@
    gps_prase_flag=1;//恢复gps解析
    uart1_change_from_debug_to_gps();//测试
    PCA9555_Set_One_Value_Output(MCU_A,0);//输出低电平切换为GPS
    #ifdef UWB_CG
    CloseUWB();
    #endif
    while (1)
    { 
        uwb_app_poll();