From da2bc7395d70a909b037a7a60073e019713b47dd Mon Sep 17 00:00:00 2001 From: dnc40085 Date: Sun, 22 Apr 2018 22:18:36 -0700 Subject: [PATCH] Changed out of memory response from system halt to system restart --- app/pm/swtimer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/pm/swtimer.c b/app/pm/swtimer.c index 802a2ee4..9042b3b1 100644 --- a/app/pm/swtimer.c +++ b/app/pm/swtimer.c @@ -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)); if(!queue_temp){ //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__); - while(1) - system_soft_wdt_feed(); + dbg_printf("\n\t%s:out of memory, rebooting.", __FUNCTION__); + system_restart(); } queue_temp->tmr_cb_ptr = timer_cb_ptr; queue_temp->suspend_policy = suspend_policy;