Browse Source

app_trace: Fix tmo initialization

Alexey Gerenkov 7 years ago
parent
commit
7e5c235b9d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      components/app_trace/include/esp_app_trace_util.h

+ 1 - 0
components/app_trace/include/esp_app_trace_util.h

@@ -41,6 +41,7 @@ static inline void esp_apptrace_tmo_init(esp_apptrace_tmo_t *tmo, uint32_t user_
 {
     tmo->start = portGET_RUN_TIME_COUNTER_VALUE();
     tmo->tmo = user_tmo;
+    tmo->elapsed = 0;
 }
 
 /**