Skip to content

Commit 042c06e

Browse files
kl-cruznika-nordic
authored andcommitted
tests: drivers: Change comparison of ticks in PDM loopback test
Loosening value of comparison. Signed-off-by: Karol Lasończyk <[email protected]>
1 parent 163581b commit 042c06e

File tree

1 file changed

+2
-2
lines changed
  • tests/drivers/audio/pdm_loopback/src

1 file changed

+2
-2
lines changed

tests/drivers/audio/pdm_loopback/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@ ZTEST(pdm_loopback, test_pdm_clk_frequency)
270270

271271
uint32_t pulses = nrfx_timer_capture_get(&timer_instance, NRF_TIMER_CC_CHANNEL0);
272272

273-
/* Assert that captured frequency is within 2% margin of expected one. */
273+
/* Assert that captured frequency is within 3% margin of expected one. */
274274
zassert_within(pulses, PDM_EXPECTED_FREQ * SAMPLING_RATIO,
275-
PDM_EXPECTED_FREQ * SAMPLING_RATIO / 50,
275+
PDM_EXPECTED_FREQ * SAMPLING_RATIO / 30,
276276
"Captured incorrect frequency Hz. Captured pulses = %lu, expected = %lu",
277277
pulses, PDM_EXPECTED_FREQ * SAMPLING_RATIO);
278278
}

0 commit comments

Comments
 (0)