Fixed bug that caused crash when printing wifi.suspend disabled msg (#2365)
This commit is contained in:
parent
3ec252df6a
commit
6a261aecdb
|
@ -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_sprintf("%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_sprintf("%s", susp_note_str);
|
||||
dbg_printf("%s", susp_note_str);
|
||||
return luaL_error(L, susp_unavailable_str);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue