fix(log): Fix log time mismatch

When system startup, using 2*crystal as clock source.
This commit is contained in:
Wu Jian Gang
2018-12-28 13:55:32 +08:00
parent 34b64c20ee
commit 09fe8f7085
6 changed files with 44 additions and 9 deletions

View File

@ -178,11 +178,6 @@ bool bootloader_common_erase_part_type_data(const char *list_erase, bool ota_dat
static const char *TAG = "bootloader_common";
static inline uint32_t esp_log_early_timestamp()
{
return xthal_get_ccount() / (80 * 1000);
}
uint32_t bootloader_common_ota_select_crc(const esp_ota_select_entry_t *s)
{
return crc32_le(UINT32_MAX, (uint8_t*)&s->ota_seq, 4);