mirror of
https://gitee.com/openLuat/LuatOS
synced 2025-08-17 22:18:03 +08:00
update: demo/rtc不需要区分型号
This commit is contained in:
parent
353267550d
commit
d79171ce0f
|
@ -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())
|
Loading…
Reference in New Issue
Block a user