浏览代码

bug 修复

moki 1 周之前
父节点
当前提交
62ed79314d
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      firmware/ai_light/ai_light.ino

+ 3 - 2
firmware/ai_light/ai_light.ino

@@ -608,8 +608,6 @@ void setup() {
   currentMode = "init";
   modeStart = millis();
 
-  setupBLE();
-
   if (useMQTT && isConfigComplete()) {
     connectWiFi();
     connectMQTT();
@@ -617,6 +615,9 @@ void setup() {
     Serial.println("Config incomplete. Use BLE to configure.");
   }
 
+  setupBLE();
+  delay(100);
+
   setMode("traffic");
   Serial.println("Long press BOOT (3s) to switch mode.");
 }