Explorar o código

add:http请求加延迟,避免失败时候一直请求过快

Dozingfiretruck %!s(int64=3) %!d(string=hai) anos
pai
achega
15c7cd97c4
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      script/turnkey/eink-calendar/main.lua

+ 1 - 0
script/turnkey/eink-calendar/main.lua

@@ -35,6 +35,7 @@ local function requestHttp()
         if code == 200 then
             return body
         end
+        sys.wait(500)
     end
 end