mirror of
https://github.com/esphome/esphome.git
synced 2025-01-19 04:20:56 +00:00
clang-format
This commit is contained in:
parent
77adb168ca
commit
69681d0ec1
@ -112,7 +112,7 @@ void ADCSensor::setup() {
|
||||
// RISC-V variants and S3 use curve fitting calibration
|
||||
adc_cali_curve_fitting_config_t cali_config = {}; // Zero initialize first
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 3, 0)
|
||||
cali_config.chan = this->channel_; // Set chan first as it's the first field in v5.3+
|
||||
cali_config.chan = this->channel_;
|
||||
#endif // ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 3, 0)
|
||||
cali_config.unit_id = unit_id;
|
||||
cali_config.atten = this->attenuation_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user