From e8f569dc5f589bd6ffcbac13a20136d503ead9b0 Mon Sep 17 00:00:00 2001 From: Alastair D'Silva Date: Mon, 11 Apr 2016 21:09:03 +1000 Subject: [PATCH] Use microsecond timer for heap use as the timer is in microsecond mode --- esp-link/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp-link/main.c b/esp-link/main.c index dbb4381..fcbfabb 100644 --- a/esp-link/main.c +++ b/esp-link/main.c @@ -143,7 +143,7 @@ void user_init(void) { #ifdef SHOW_HEAP_USE os_timer_disarm(&prHeapTimer); os_timer_setfn(&prHeapTimer, prHeapTimerCb, NULL); - os_timer_arm(&prHeapTimer, 10000, 1); + os_timer_arm_us(&prHeapTimer, 10 * 1000000, 1); #endif struct rst_info *rst_info = system_get_rst_info();