Merge branch 'bugfix/a2dp_no_audio_transmitted_v4.3' into 'release/v4.3'

bugfix/fix wrong clock_id in function `time_now_us` (v4.3)

See merge request espressif/esp-idf!15316
This commit is contained in:
Wang Meng Yang 2021-10-08 06:01:22 +00:00
commit 166790d354

View File

@ -397,7 +397,7 @@ static UINT64 time_now_us(void)
{
#if _POSIX_TIMERS
struct timespec ts_now;
clock_gettime(CLOCK_BOOTTIME, &ts_now);
clock_gettime(CLOCK_MONOTONIC, &ts_now);
return ((UINT64)ts_now.tv_sec * 1000000L) + ((UINT64)ts_now.tv_nsec / 1000);
#else
struct timeval ts_now;