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
da2bc739
Commit
da2bc739
authored
Apr 22, 2018
by
dnc40085
Browse files
Changed out of memory response from system halt to system restart
parent
2735426f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/pm/swtimer.c
View file @
da2bc739
...
@@ -394,9 +394,8 @@ static void add_to_reg_queue(void* timer_cb_ptr, uint8 suspend_policy){
...
@@ -394,9 +394,8 @@ static void add_to_reg_queue(void* timer_cb_ptr, uint8 suspend_policy){
tmr_cb_queue_t
*
queue_temp
=
c_zalloc
(
sizeof
(
tmr_cb_queue_t
));
tmr_cb_queue_t
*
queue_temp
=
c_zalloc
(
sizeof
(
tmr_cb_queue_t
));
if
(
!
queue_temp
){
if
(
!
queue_temp
){
//it's boot time currently and we're already out of memory, something is very wrong...
//it's boot time currently and we're already out of memory, something is very wrong...
dbg_printf
(
"
\n\t
%s:out of memory, system halted!
\n
"
,
__FUNCTION__
);
dbg_printf
(
"
\n\t
%s:out of memory, rebooting."
,
__FUNCTION__
);
while
(
1
)
system_restart
();
system_soft_wdt_feed
();
}
}
queue_temp
->
tmr_cb_ptr
=
timer_cb_ptr
;
queue_temp
->
tmr_cb_ptr
=
timer_cb_ptr
;
queue_temp
->
suspend_policy
=
suspend_policy
;
queue_temp
->
suspend_policy
=
suspend_policy
;
...
...
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