Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
bc1dd37a
Commit
bc1dd37a
authored
May 22, 2019
by
Alistair Witt
Committed by
Gregor Hartmann
May 22, 2019
Browse files
Replaced obsolete static timers in lfs_fragments.lua (nodemcu #2764)
parent
036bff56
Changes
1
Hide whitespace changes
Inline
Side-by-side
lua_examples/lfs/lfs_fragments.lua
View file @
bc1dd37a
...
@@ -56,8 +56,11 @@ if node.flashindex() == nil then
...
@@ -56,8 +56,11 @@ if node.flashindex() == nil then
node
.
flashreload
(
'flash.img'
)
node
.
flashreload
(
'flash.img'
)
end
end
tmr
.
alarm
(
0
,
1000
,
tmr
.
ALARM_SINGLE
,
local
initTimer
=
tmr
.
create
()
function
()
initTimer
:
register
(
1000
,
tmr
.
ALARM_SINGLE
,
local
fi
=
node
.
flashindex
;
return
pcall
(
fi
and
fi
'_init'
)
function
()
end
)
local
fi
=
node
.
flashindex
;
return
pcall
(
fi
and
fi
'_init'
)
end
)
initTimer
:
start
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment