From 1188bdfc684bda5cfc84ca239526d87509320743 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Sun, 18 Sep 2016 21:06:43 +0800 Subject: [PATCH] components/log: fix timestamp calculation --- components/log/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/log/log.c b/components/log/log.c index b347b20a3..aae12a773 100644 --- a/components/log/log.c +++ b/components/log/log.c @@ -300,7 +300,7 @@ uint32_t IRAM_ATTR esp_log_timestamp() if (base == 0) { base = esp_log_early_timestamp(); } - return base + xTaskGetTickCount() * configTICK_RATE_HZ; + return base + xTaskGetTickCount() * (1000 / configTICK_RATE_HZ); } #else