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
4d784798
Unverified
Commit
4d784798
authored
Sep 08, 2020
by
Gregor Hartmann
Committed by
GitHub
Sep 08, 2020
Browse files
Add deprecation note to node.flashreload (#3273)
parent
d88c14b9
Changes
1
Show whitespace changes
Inline
Side-by-side
app/modules/node.c
View file @
4d784798
...
@@ -652,6 +652,12 @@ static int node_lfsreload (lua_State *L) {
...
@@ -652,6 +652,12 @@ static int node_lfsreload (lua_State *L) {
return
1
;
return
1
;
}
}
// Lua: n = node.flashreload(lfsimage)
static
int
lua_lfsreload_deprecated
(
lua_State
*
L
)
{
platform_print_deprecation_note
(
"node.flashreload"
,
"soon. Use node.LFS interface instead"
);
return
node_lfsreload
(
L
);
}
// Lua: n = node.flashindex(module)
// Lua: n = node.flashindex(module)
// Lua: n = node.LFS.get(module)
// Lua: n = node.LFS.get(module)
static
int
node_lfsindex
(
lua_State
*
L
)
{
static
int
node_lfsindex
(
lua_State
*
L
)
{
...
@@ -872,8 +878,8 @@ LROT_BEGIN(node, NULL, 0)
...
@@ -872,8 +878,8 @@ LROT_BEGIN(node, NULL, 0)
LROT_FUNCENTRY
(
heap
,
node_heap
)
LROT_FUNCENTRY
(
heap
,
node_heap
)
LROT_FUNCENTRY
(
info
,
node_info
)
LROT_FUNCENTRY
(
info
,
node_info
)
LROT_TABENTRY
(
task
,
node_task
)
LROT_TABENTRY
(
task
,
node_task
)
LROT_FUNCENTRY
(
flashreload
,
lua_lfsreload_deprecated
)
LROT_FUNCENTRY
(
flashindex
,
node_lfsindex
)
LROT_FUNCENTRY
(
flashindex
,
node_lfsindex
)
LROT_FUNCENTRY
(
flashreload
,
node_lfsreload
)
LROT_TABENTRY
(
LFS
,
node_lfs
)
LROT_TABENTRY
(
LFS
,
node_lfs
)
LROT_FUNCENTRY
(
setonerror
,
node_setonerror
)
LROT_FUNCENTRY
(
setonerror
,
node_setonerror
)
LROT_FUNCENTRY
(
startupcommand
,
node_startupcommand
)
LROT_FUNCENTRY
(
startupcommand
,
node_startupcommand
)
...
...
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