Explorar o código

mod: 相机连接失败 调整

panqiuyao hai 8 meses
pai
achega
2367fa8a11
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      frontend/src/stores/modules/check.ts

+ 5 - 0
frontend/src/stores/modules/check.ts

@@ -183,6 +183,11 @@ export const checkInfo = defineStore('checkInfo', () => {
                     devices.blue_tooth.status = -1;
                     devices.blue_tooth.msg = '遥控器未连接。';
                 }
+                if( devices.mcu.status !== 2 || mcu.status !== 2 ){
+                    devices.mcu.status = -1;
+                    mcu.status = -1;
+                    devices.blue_tooth.msg = '拍照机链接失败';
+                }
             }
         },1000)
         await checkAction();