mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
Merge branch 'fix/ana_cmpr_h4_timestamp_tolerance' into 'master'
fix(ana_cmpr): adjust delta_us tolerance for ESP32-H4 capture timestamps test Closes IDFCI-11837, IDFCI-11836, IDFCI-11835, IDFCI-11834, and IDFCI-11833 See merge request espressif/esp-idf!52808
This commit is contained in:
@@ -493,7 +493,9 @@ TEST_CASE("ana_cmpr capture timestamps", "[ana_cmpr]")
|
||||
printf("ana_cmpr capture timestamps: current=%" PRIu32 ", previous=%" PRIu32 ", delta_ticks=%" PRIu32 ", delta_us=%" PRIu32 "\r\n",
|
||||
current, previous, delta_ticks, delta_us);
|
||||
#if CONFIG_IDF_TARGET_ESP32H4
|
||||
TEST_ASSERT_UINT_WITHIN(50, 100, delta_us);
|
||||
// the overhead of trigger_scan() is ~10 us * resample_limit (3) = ~30 us,
|
||||
// plus the 100 us delay we inserted, so the total delta_us should be around 130 us
|
||||
TEST_ASSERT_UINT_WITHIN(30, 130, delta_us);
|
||||
#else
|
||||
// We insert ~100 us delay between two trigger_scan() calls.
|
||||
TEST_ASSERT_UINT_WITHIN(20, 100, delta_us);
|
||||
|
||||
Reference in New Issue
Block a user