kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/esp_log_timestamp' into 'master'
Use proper API to get Tick Count is esp_log_timestamp See merge request espressif/esp-idf!7501pull/2405/merge
commit
41e29e9037
|
@ -99,7 +99,8 @@ uint32_t esp_log_timestamp(void)
|
|||
if (base == 0 && xPortGetCoreID() == 0) {
|
||||
base = esp_log_early_timestamp();
|
||||
}
|
||||
return base + xTaskGetTickCount() * (1000 / configTICK_RATE_HZ);
|
||||
TickType_t tick_count = xPortInIsrContext() ? xTaskGetTickCountFromISR() : xTaskGetTickCount();
|
||||
return base + tick_count * (1000 / configTICK_RATE_HZ);
|
||||
}
|
||||
|
||||
/* FIXME: define an API for getting the timestamp in soc/hal */
|
||||
|
|
Ładowanie…
Reference in New Issue