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
6a261aec
Commit
6a261aec
authored
May 07, 2018
by
dnc40085
Committed by
Marcel Stör
May 07, 2018
Browse files
Fixed bug that caused crash when printing wifi.suspend disabled msg (#2365)
parent
3ec252df
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/wifi.c
View file @
6a261aec
...
...
@@ -512,16 +512,16 @@ static int wifi_resume(lua_State* L)
/* End WiFi suspend functions*/
#else
static
char
*
susp_note_str
=
"
\n
The option
\"
pmsleep_enable
\"
in
\"
app/include/user_config.h
\"
was disabled during FW build!
\n
"
;
static
char
*
susp_note_str
=
"
\n
The option
\"
PMSLEEP_ENABLE
\"
in
\"
app/include/user_config.h
\"
was disabled during FW build!
\n
"
;
static
char
*
susp_unavailable_str
=
"wifi.suspend is unavailable"
;
static
int
wifi_suspend
(
lua_State
*
L
){
c_s
printf
(
"%s"
,
susp_note_str
);
dbg_
printf
(
"%s"
,
susp_note_str
);
return
luaL_error
(
L
,
susp_unavailable_str
);
}
static
int
wifi_resume
(
lua_State
*
L
){
c_s
printf
(
"%s"
,
susp_note_str
);
dbg_
printf
(
"%s"
,
susp_note_str
);
return
luaL_error
(
L
,
susp_unavailable_str
);
}
#endif
...
...
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