mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 03:34:32 +02:00
rtc_module: fix build failure if assertions are disabled
Closes https://github.com/espressif/esp-idf/issues/1841 Signed-off-by: Mahavir Jain <mahavir@espressif.com>
This commit is contained in:
@@ -1240,7 +1240,7 @@ static int adc_convert( adc_unit_t unit, int channel)
|
||||
adc_value = SENS.sar_meas_start2.meas2_data_sar;
|
||||
} else {
|
||||
ESP_LOGE(TAG, "invalid adc unit");
|
||||
assert(0);
|
||||
return ESP_ERR_INVALID_ARG;
|
||||
}
|
||||
return adc_value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user