Skip to content

Commit 7b23a37

Browse files
committed
tests: drivers: adc: adc_latency: show adc value on error
More data visible in logs. Signed-off-by: Piotr Kosycarz <[email protected]>
1 parent 4a222b7 commit 7b23a37

File tree

1 file changed

+2
-2
lines changed
  • tests/drivers/adc/adc_latency/src

1 file changed

+2
-2
lines changed

tests/drivers/adc/adc_latency/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ static void test_adc_latency(uint32_t acquisition_time_us, uint32_t sampling_int
119119
*/
120120
for (int i = 0; i < adc_buffer_length; i++) {
121121
zassert_true(adc_sample_buffer[i] > ADC_MINIMAL_READING_FOR_HIGH_LEVEL,
122-
"Sample %u is below the minimal ADC reading for high level\n",
123-
i);
122+
"Sample [%u] = %d, is below the minimal ADC reading for high level\n",
123+
i, adc_sample_buffer[i]);
124124
}
125125
#endif
126126
}

0 commit comments

Comments
 (0)