Commit fee5608c authored by Terry Ellison's avatar Terry Ellison Committed by GitHub
Browse files

Merge pull request #2064 from dnc40085/dev_disable_pmsleep_and_timer_suspend

Comment out pmsleep and timer_suspend options in user_config.h
parents 61562b45 c9e86218
...@@ -114,8 +114,8 @@ extern void luaL_assertfail(const char *file, int line, const char *message); ...@@ -114,8 +114,8 @@ extern void luaL_assertfail(const char *file, int line, const char *message);
#define WIFI_SDK_EVENT_MONITOR_ENABLE #define WIFI_SDK_EVENT_MONITOR_ENABLE
#define WIFI_EVENT_MONITOR_DISCONNECT_REASON_LIST_ENABLE #define WIFI_EVENT_MONITOR_DISCONNECT_REASON_LIST_ENABLE
#define ENABLE_TIMER_SUSPEND ////#define ENABLE_TIMER_SUSPEND
#define PMSLEEP_ENABLE //#define PMSLEEP_ENABLE
#define STRBUF_DEFAULT_INCREMENT 32 #define STRBUF_DEFAULT_INCREMENT 32
......
...@@ -428,7 +428,7 @@ static int tmr_create( lua_State *L ) { ...@@ -428,7 +428,7 @@ static int tmr_create( lua_State *L ) {
} }
#if defined(SWTMR_DEBUG) #if defined(ENABLE_TIMER_SUSPEND) && defined(SWTMR_DEBUG)
static void tmr_printRegistry(lua_State* L){ static void tmr_printRegistry(lua_State* L){
swtmr_print_registry(); swtmr_print_registry();
} }
...@@ -463,7 +463,7 @@ static const LUA_REG_TYPE tmr_dyn_map[] = { ...@@ -463,7 +463,7 @@ static const LUA_REG_TYPE tmr_dyn_map[] = {
{ LNILKEY, LNILVAL } { LNILKEY, LNILVAL }
}; };
#if defined(SWTMR_DEBUG) #if defined(ENABLE_TIMER_SUSPEND) && defined(SWTMR_DEBUG)
static const LUA_REG_TYPE tmr_dbg_map[] = { static const LUA_REG_TYPE tmr_dbg_map[] = {
{ LSTRKEY( "printRegistry" ), LFUNCVAL( tmr_printRegistry ) }, { LSTRKEY( "printRegistry" ), LFUNCVAL( tmr_printRegistry ) },
{ LSTRKEY( "printSuspended" ), LFUNCVAL( tmr_printSuspended ) }, { LSTRKEY( "printSuspended" ), LFUNCVAL( tmr_printSuspended ) },
...@@ -492,7 +492,7 @@ static const LUA_REG_TYPE tmr_map[] = { ...@@ -492,7 +492,7 @@ static const LUA_REG_TYPE tmr_map[] = {
{ LSTRKEY( "state" ), LFUNCVAL( tmr_state ) }, { LSTRKEY( "state" ), LFUNCVAL( tmr_state ) },
{ LSTRKEY( "interval" ), LFUNCVAL( tmr_interval ) }, { LSTRKEY( "interval" ), LFUNCVAL( tmr_interval ) },
{ LSTRKEY( "create" ), LFUNCVAL( tmr_create ) }, { LSTRKEY( "create" ), LFUNCVAL( tmr_create ) },
#if defined(SWTMR_DEBUG) #if defined(ENABLE_TIMER_SUSPEND) && defined(SWTMR_DEBUG)
{ LSTRKEY( "debug" ), LROVAL( tmr_dbg_map ) }, { LSTRKEY( "debug" ), LROVAL( tmr_dbg_map ) },
#endif #endif
{ LSTRKEY( "ALARM_SINGLE" ), LNUMVAL( TIMER_MODE_SINGLE ) }, { LSTRKEY( "ALARM_SINGLE" ), LNUMVAL( TIMER_MODE_SINGLE ) },
......
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