Commit 6a261aec authored by dnc40085's avatar dnc40085 Committed by Marcel Stör
Browse files

Fixed bug that caused crash when printing wifi.suspend disabled msg (#2365)

parent 3ec252df
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment