Parcourir la source

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

Dozingfiretruck il y a 3 ans
Parent
commit
15c7cd97c4
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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