fix(log): fix boot time data type errot

This commit is contained in:
dongheng
2019-10-18 18:23:31 +08:00
parent 2e252672b8
commit 8ddac7b9cf

View File

@ -61,7 +61,7 @@ uint32_t IRAM_ATTR esp_log_early_timestamp()
{
#ifndef BOOTLOADER_BUILD
extern uint64_t g_esp_os_us;
extern uint64_t g_esp_boot_ccount;
extern uint32_t g_esp_boot_ccount;
const uint32_t ticks_per_ms = g_esp_ticks_per_us * 1000;
const uint32_t ms = g_esp_os_us / 1000 + g_esp_boot_ccount / ((CRYSTAL_USED * 2) * 1000);