Explorar o código

fix:加上网络未注册时的延时,避免死循环

fupenghui %!s(int64=2) %!d(string=hai) anos
pai
achega
30e0646331
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      demo/netled/main.lua

+ 3 - 0
demo/netled/main.lua

@@ -29,6 +29,9 @@ sys.taskInit(function()
         if mobile.status() == 1 then
             sys.wait(600)
             netLed.setupBreateLed(LEDA)
+        else
+            sys.wait(3000)
+            log.info("net fail")
         end
     end
 end)