zhunk 4 недель назад
Родитель
Сommit
f922090a2a

+ 0 - 1
Application_CBD/applications/control.h

@@ -165,7 +165,6 @@ typedef struct  _packed
     char net[8];               //网络
     char sim[8];               //SIM卡
     char gps[8];               //定位类型
-    char gps_state[8];         //定位类型
     char wind_speed[12];       //风速m/s
     char wind_dir[12];         //风向
     char tempture[12];         //温度

+ 1 - 1
Application_CBD/applications/dtu_uart2.c

@@ -5,7 +5,7 @@
  *
  * Change Logs:
  * Date           Author       Notes
- * 2020-05-28     Administrator       the first version
+ * 2020-05-28     Administrator    fv   the first version
  */
 #include <rtthread.h>
 #include "hmi.h"

+ 1 - 1
Application_CBD/applications/hmi.c

@@ -904,7 +904,7 @@ static void hmi_refresh_pages(const struct tm *ptm)
     }
 
     if(atoi(device_status.gps)==1){
-        HMI_WRITE("menu.gps_state.txt=\"定位成功:(GPS+BD)%d/%d\"",device_status.gps_state,device_status.gps_inuse,device_status.gps_view);
+        HMI_WRITE("menu.gps_state.txt=\"定位成功:(GPS+BD)%d/%d\"",device_status.gps_inuse,device_status.gps_view);
     }else if(atoi(device_status.gps)==2){
         HMI_WRITE("menu.gps_state.txt=\"定位成功:(基站)\"");
     }

+ 1 - 9
Application_CBD/applications/selfcheck.c

@@ -81,15 +81,7 @@ int selfcheck(uint8_t type)
         HMI_WRITE("selfcheck.t13.bco=2024");
         device_status.C01 &= ~(1<<12);
     }
-    if(atoi(device_status.gps_state)==0)
-    {
-        HMI_WRITE("selfcheck.t12.bco=63488");
-        device_status.C01 |= (1<<11);
-    }
-    else {
-        HMI_WRITE("selfcheck.t12.bco=2024");
-        device_status.C01 &= ~(1<<11);
-    }
+
     if(device_status.bat_status==0)
     {
         HMI_WRITE("selfcheck.t5.bco=2024");

+ 4 - 0
Application_CBD/doc/readme.md

@@ -1,3 +1,7 @@
+# 2026-10-24 更新说明
+1.修复下面bug:
+HMI_WRITE("menu.gps_state.txt=\"定位成功:(GPS+BD)%d/%d\"",device_status.gps_state,device_status.gps_inuse,device_status.gps_view);
+ 多发送了device_status.gps_state导致显示异常;
 # 2026-10-22 更新说明
 			版本:VERSION_HK      1.82.41(HK)     -> 1.83.41(HK)
 		      VERSION_HK_2000W 1.82.40(2000W)  -> 1.83.40(2000W)