mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/adc_dma_test_value_4.2' into 'release/v4.2'
adc_test: fix the failure caused by low expected middle value (v4.2) See merge request espressif/esp-idf!10887
This commit is contained in:
commit
87247d5672
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user