mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
HP was asserting a live LP buffer and starting firmware before ADC/GPIO setup. That produced leftover-high values and print/assert mismatches on pull-down. Wait 100 ms for analog settle, then wait for completed scans with a wall-clock timeout (pdMS_TO_TICKS(1) is zero at a 10 ms tick). Copy a local snapshot and assert it; do not retry until a reading is in range. Deinit on teardown so a failed raw-read cannot abort the following stress case.