Skip to content

Commit

Permalink
Fixed bug that caused crash when printing wifi.suspend disabled msg (n…
Browse files Browse the repository at this point in the history
  • Loading branch information
dnc40085 authored and marcelstoer committed May 7, 2018
1 parent 3ec252d commit 6a261ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/modules/wifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a261ae

Please sign in to comment.