forked from espressif/esp-idf
refactor(esp_adc): reformat code with astyle_py 2
This commit is contained in:
@@ -179,13 +179,11 @@ __attribute__((unused)) static void adc_work_with_wifi(adc_unit_t unit_id, adc_c
|
||||
test_adc_set_io_level(unit_id, channel, test_list[i]);
|
||||
target_value = test_list[i] ? ADC_TEST_HIGH_VAL : ADC_TEST_LOW_VAL;
|
||||
|
||||
|
||||
/* ADC single read before WIFI start */
|
||||
TEST_ESP_OK(adc_oneshot_read(adc_handle, channel, &read_raw));
|
||||
printf("Before WiFi starts, ADC read: %d (target_value: %d)\n", read_raw, target_value);
|
||||
TEST_ASSERT_INT_WITHIN(ADC_ERROR_THRES, target_value, read_raw);
|
||||
|
||||
|
||||
/* ADC single read when WIFI is on */
|
||||
TEST_ESP_OK(esp_wifi_start());
|
||||
#if CONFIG_IDF_TARGET_ESP32
|
||||
|
Reference in New Issue
Block a user