Use microsecond timer for heap use as the timer is in microsecond mode

pull/138/head
Alastair D'Silva 9 years ago
parent dbab746e3c
commit e8f569dc5f
  1. 2
      esp-link/main.c

@ -143,7 +143,7 @@ void user_init(void) {
#ifdef SHOW_HEAP_USE #ifdef SHOW_HEAP_USE
os_timer_disarm(&prHeapTimer); os_timer_disarm(&prHeapTimer);
os_timer_setfn(&prHeapTimer, prHeapTimerCb, NULL); os_timer_setfn(&prHeapTimer, prHeapTimerCb, NULL);
os_timer_arm(&prHeapTimer, 10000, 1); os_timer_arm_us(&prHeapTimer, 10 * 1000000, 1);
#endif #endif
struct rst_info *rst_info = system_get_rst_info(); struct rst_info *rst_info = system_get_rst_info();

Loading…
Cancel
Save