1
0
mirror of https://gitee.com/openLuat/LuatOS synced 2025-08-17 22:18:03 +08:00

update: demo/rtc不需要区分型号

This commit is contained in:
Wendal Chen 2022-12-03 22:38:38 +08:00
parent 353267550d
commit d79171ce0f

View File

@ -13,8 +13,10 @@ log.info("main", PROJECT, VERSION)
_G.sys = require("sys")
--添加硬狗防止程序卡死
wdt.init(9000)--初始化watchdog设置为9s
sys.timerLoopStart(wdt.feed, 3000)--3s喂一次狗
if wdt then
wdt.init(9000)--初始化watchdog设置为9s
sys.timerLoopStart(wdt.feed, 3000)--3s喂一次狗
end
sys.taskInit(function()
log.info("os.date()", os.date())