Skip to content

Commit fee5608

Browse files
authored
Merge pull request #2064 from dnc40085/dev_disable_pmsleep_and_timer_suspend
Comment out pmsleep and timer_suspend options in user_config.h
2 parents 61562b4 + c9e8621 commit fee5608

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/include/user_config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ extern void luaL_assertfail(const char *file, int line, const char *message);
114114
#define WIFI_SDK_EVENT_MONITOR_ENABLE
115115
#define WIFI_EVENT_MONITOR_DISCONNECT_REASON_LIST_ENABLE
116116

117-
#define ENABLE_TIMER_SUSPEND
118-
#define PMSLEEP_ENABLE
117+
////#define ENABLE_TIMER_SUSPEND
118+
//#define PMSLEEP_ENABLE
119119

120120

121121
#define STRBUF_DEFAULT_INCREMENT 32

app/modules/tmr.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ static int tmr_create( lua_State *L ) {
428428
}
429429

430430

431-
#if defined(SWTMR_DEBUG)
431+
#if defined(ENABLE_TIMER_SUSPEND) && defined(SWTMR_DEBUG)
432432
static void tmr_printRegistry(lua_State* L){
433433
swtmr_print_registry();
434434
}
@@ -463,7 +463,7 @@ static const LUA_REG_TYPE tmr_dyn_map[] = {
463463
{ LNILKEY, LNILVAL }
464464
};
465465

466-
#if defined(SWTMR_DEBUG)
466+
#if defined(ENABLE_TIMER_SUSPEND) && defined(SWTMR_DEBUG)
467467
static const LUA_REG_TYPE tmr_dbg_map[] = {
468468
{ LSTRKEY( "printRegistry" ), LFUNCVAL( tmr_printRegistry ) },
469469
{ LSTRKEY( "printSuspended" ), LFUNCVAL( tmr_printSuspended ) },
@@ -492,7 +492,7 @@ static const LUA_REG_TYPE tmr_map[] = {
492492
{ LSTRKEY( "state" ), LFUNCVAL( tmr_state ) },
493493
{ LSTRKEY( "interval" ), LFUNCVAL( tmr_interval ) },
494494
{ LSTRKEY( "create" ), LFUNCVAL( tmr_create ) },
495-
#if defined(SWTMR_DEBUG)
495+
#if defined(ENABLE_TIMER_SUSPEND) && defined(SWTMR_DEBUG)
496496
{ LSTRKEY( "debug" ), LROVAL( tmr_dbg_map ) },
497497
#endif
498498
{ LSTRKEY( "ALARM_SINGLE" ), LNUMVAL( TIMER_MODE_SINGLE ) },

0 commit comments

Comments
 (0)