diff --git a/components/driver/test/adc_dma_test/test_esp32.c b/components/driver/test/adc_dma_test/test_esp32.c index a555449a5b..4ece7a4e70 100644 --- a/components/driver/test/adc_dma_test/test_esp32.c +++ b/components/driver/test/adc_dma_test/test_esp32.c @@ -109,7 +109,7 @@ static esp_err_t adc_dma_data_check(uint8_t *buf, int length, int ideal_level) } else if (ideal_level == 0) { // low level 0v TEST_ASSERT_LESS_THAN( 10, p->type1.data ); } else if (ideal_level == 2) { // middle level 1.4v - TEST_ASSERT_INT_WITHIN( 128, 1666, p->type1.data ); + TEST_ASSERT_INT_WITHIN( 128, 1586, p->type1.data ); } else if (ideal_level == 3) { // normal level } else { // no check } @@ -162,4 +162,4 @@ TEST_CASE("ADC DMA read", "[adc dma]") example_i2s_deinit(); } -#endif // !DISABLED_FOR_TARGETS(ESP8266, ESP32S2) \ No newline at end of file +#endif // !DISABLED_FOR_TARGETS(ESP8266, ESP32S2)