瀏覽代碼

速度上报记录优化

chengqian 4 月之前
父節點
當前提交
a9c2e96359
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 二進制
      build/smart_intersectionV2.0
  2. 4 4
      service/deviceMgr.go

二進制
build/smart_intersectionV2.0


+ 4 - 4
service/deviceMgr.go

@@ -123,10 +123,10 @@ func (s *Device) Process() {
 			}
 		}
 
-		//if strings.Contains(data, `"status":"none"`) {
-		//	s.SumHighSpeed = 0
-		//	s.SumLowSpeed = 0
-		//}
+		if strings.Contains(data, `"status":"none"`) {
+			s.SumHighSpeed = 0
+			s.SumLowSpeed = 0
+		}
 
 	}
 }