Ver Fonte

UFO发送RF重连教具

chaooo há 1 ano atrás
pai
commit
666d5b3382
1 ficheiros alterados com 3 adições e 4 exclusões
  1. 3 4
      src/pages/games/play/index.vue

+ 3 - 4
src/pages/games/play/index.vue

@@ -463,10 +463,8 @@ export default {
       wx.setKeepScreenOn({
         keepScreenOn: true,
       });
-      let $toy_sn = ble_store.getters.getToySn().toUpperCase();
-      if(!$toy_sn.includes("UF")){
-        $this.$connection.sendAutoConnectRf(true, Math.round($this.total_time / 60));
-      }
+      // 打开重连功能,自动发送RF重连教具
+      $this.$connection.sendAutoConnectRf(true, Math.round($this.total_time / 60));
       $this.$connection.notifyDatas($this);
       setTimeout(() => {
         // 获取LED灯状态并设置
@@ -479,6 +477,7 @@ export default {
         }
       }, 500);
       setTimeout(() => {
+        let $toy_sn = ble_store.getters.getToySn().toUpperCase();
         // 获取教具类型 发送陀螺仪开关指令
         if ($toy_sn.includes("SW") || $toy_sn.includes("KL") || $toy_sn.includes("SC")) {
           // 设置教具为无运动状态 AA CC 03 00 00 00 34 CKS