提交补充报错
authord15521469561 <d155214695615@qq.com>
Tue, 16 May 2023 06:49:29 +0000 (14:49 +0800)
committerd15521469561 <d155214695615@qq.com>
Tue, 16 May 2023 06:49:29 +0000 (14:49 +0800)
2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/mgr.py
2.sdk/project/K5/sdk/system/platform/ASR_1606/boards/EG810MCN_GA_ALIPAY/images/firmware_base_release_pack.zip

index 91915a3..4ae047a 100644 (file)
@@ -758,15 +758,13 @@ class DeviceInfoManager(Abstract):
             self.sms_full_flag=0
             if msg_nums >= 50:
                 EventMesh.publish("load_screen", {"screen": "message_full"})
-        
 
-        if EventMesh.publish(constants.EVENT.GET_CONNECT) == 1 and battery[1] != 1:
+        get_temp_time  = EventMesh.publish("get_temp_time")
+        get_temp_state  = EventMesh.publish("get_temp_state")
 
-            get_temp_time  = EventMesh.publish("get_temp_time")
-            get_temp_state  = EventMesh.publish("get_temp_state")
+        if EventMesh.publish(constants.EVENT.GET_CONNECT) == 1 and battery[1] != 1:
             # print("get_temp_time:{} self.temp_one_state:{}".format(get_temp_time,self.temp_one_state))
             if get_temp_time != None:#定时测量体温
-                
                 if get_temp_time > 0:
                     if get_temp_state != None:
                         if get_temp_state == 0 or get_temp_state == 2 or get_temp_state == 3 :
@@ -855,7 +853,6 @@ class DeviceInfoManager(Abstract):
                             EventMesh.publish("set_temp_state",0)
                             EventMesh.publish(constants.PROTOCOL.TEMP_SEND,[tmp_f_tmp,tmp_d_tmp])
 
-
             if hr_time != None:
                 # print("hr......01....{}\r\n".format(hr_time))
                 if hr_time > 0:
@@ -1116,18 +1113,20 @@ class DeviceInfoManager(Abstract):
                 elif self.get_spo2_state != 0:
                     EventMesh.publish("set_spo2_state",0)#2代表后台进入测试
                     EventMesh.publish(constants.EVENT.STOP_BLOOD_OXYGEN)
-            if get_temp_state != 0:
-                self.temp_one_state = 0
-                self.temp_state = 0
-                temp = EventMesh.publish(constants.EVENT.GET_TEMP)              
-                tmp_f = str(temp).split('.')[0] 
-                tmp_f_tmp = int(tmp_f)
-
-                tmp_d = str(temp).split('.')[1][:1]
-                tmp_d_tmp = int(tmp_d)
-                EventMesh.publish("set_temp_state",0)
-                EventMesh.publish(constants.PROTOCOL.TEMP_SEND,[tmp_f_tmp,tmp_d_tmp])
-                EventMesh.publish(constants.EVENT.STOP_TEMP)
+            
+            if get_temp_time != None:
+                if get_temp_state != 0:
+                    self.temp_one_state = 0
+                    self.temp_state = 0
+                    temp = EventMesh.publish(constants.EVENT.GET_TEMP)              
+                    tmp_f = str(temp).split('.')[0] 
+                    tmp_f_tmp = int(tmp_f)
+
+                    tmp_d = str(temp).split('.')[1][:1]
+                    tmp_d_tmp = int(tmp_d)
+                    EventMesh.publish("set_temp_state",0)
+                    EventMesh.publish(constants.PROTOCOL.TEMP_SEND,[tmp_f_tmp,tmp_d_tmp])
+                    EventMesh.publish(constants.EVENT.STOP_TEMP)
             self.SENSOR_time = time_tmp
             self.HR_Onestate = 0
             self.HR_OneTime = 0
index 0101a61..6ea890b 100644 (file)
Binary files a/2.sdk/project/K5/sdk/system/platform/ASR_1606/boards/EG810MCN_GA_ALIPAY/images/firmware_base_release_pack.zip and b/2.sdk/project/K5/sdk/system/platform/ASR_1606/boards/EG810MCN_GA_ALIPAY/images/firmware_base_release_pack.zip differ