Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
fee5608c
Commit
fee5608c
authored
Aug 05, 2017
by
Terry Ellison
Committed by
GitHub
Aug 05, 2017
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/include/user_config.h
View file @
fee5608c
...
...
@@ -114,8 +114,8 @@ extern void luaL_assertfail(const char *file, int line, const char *message);
#define WIFI_SDK_EVENT_MONITOR_ENABLE
#define WIFI_EVENT_MONITOR_DISCONNECT_REASON_LIST_ENABLE
#define ENABLE_TIMER_SUSPEND
#define PMSLEEP_ENABLE
////
#define ENABLE_TIMER_SUSPEND
//
#define PMSLEEP_ENABLE
#define STRBUF_DEFAULT_INCREMENT 32
...
...
app/modules/tmr.c
View file @
fee5608c
...
...
@@ -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
){
swtmr_print_registry
();
}
...
...
@@ -463,7 +463,7 @@ static const LUA_REG_TYPE tmr_dyn_map[] = {
{
LNILKEY
,
LNILVAL
}
};
#if defined(SWTMR_DEBUG)
#if
defined(ENABLE_TIMER_SUSPEND) &&
defined(SWTMR_DEBUG)
static
const
LUA_REG_TYPE
tmr_dbg_map
[]
=
{
{
LSTRKEY
(
"printRegistry"
),
LFUNCVAL
(
tmr_printRegistry
)
},
{
LSTRKEY
(
"printSuspended"
),
LFUNCVAL
(
tmr_printSuspended
)
},
...
...
@@ -492,7 +492,7 @@ static const LUA_REG_TYPE tmr_map[] = {
{
LSTRKEY
(
"state"
),
LFUNCVAL
(
tmr_state
)
},
{
LSTRKEY
(
"interval"
),
LFUNCVAL
(
tmr_interval
)
},
{
LSTRKEY
(
"create"
),
LFUNCVAL
(
tmr_create
)
},
#if defined(SWTMR_DEBUG)
#if
defined(ENABLE_TIMER_SUSPEND) &&
defined(SWTMR_DEBUG)
{
LSTRKEY
(
"debug"
),
LROVAL
(
tmr_dbg_map
)
},
#endif
{
LSTRKEY
(
"ALARM_SINGLE"
),
LNUMVAL
(
TIMER_MODE_SINGLE
)
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment