Explorar el Código

feature: 自动搜索时间长度处理

Damon hace 7 meses
padre
commit
119c1ff919
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      devices/ble_manager.js
  2. 1 1
      pages/index/index.js

+ 1 - 1
devices/ble_manager.js

@@ -229,7 +229,7 @@ class bleManager {
     var currentMill = that.getCurrentMills();
     var waitMills = 0;
     var reduce = currentMill - that.requestBlueTime;
-    const delayMiliis = 5 * 1000;
+    const delayMiliis = 6 * 1000;
     if (reduce > 0 && reduce < delayMiliis) {
       waitMills = delayMiliis - reduce;
     }

+ 1 - 1
pages/index/index.js

@@ -147,7 +147,7 @@ Page({
     that.data.intervalId = setInterval(async function () {
       isFirst = false;
       that.compareList();
-    }, isFirst ? 5 * 1000 : 10 * 1000);
+    }, isFirst ? 6 * 1000 : 12 * 1000);
   },
 
   async compareList() {