Jelajahi Sumber

速度上报记录优化

chengqian 4 bulan lalu
induk
melakukan
a9c2e96359
2 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. TEMPAT SAMPAH
      build/smart_intersectionV2.0
  2. 4 4
      service/deviceMgr.go

TEMPAT SAMPAH
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
+		}
 
 	}
 }