09.03.2018, 10:20
Hi
Try this
Try this
Code:
function check()
local delta, wdt
wdt = io.readfile('/tmp/tpuart.wdt') or ''
wdt = tonumber(wdt) or 0
delta = os.time() - wdt
return delta <= 10
end
checktp = check()
log(checktp)
------------------------------
Ctrl+F5
Ctrl+F5