mirror of
https://github.com/esphome/esphome.git
synced 2024-12-26 07:24:54 +01:00
Don't crash with invalid adc pin (#6059)
* Don't crash with invalid adc pin * lint
This commit is contained in:
parent
a2e152ad12
commit
fdd54d74a3
1 changed files with 3 additions and 0 deletions
|
@ -139,6 +139,9 @@ ESP32_VARIANT_ADC2_PIN_TO_CHANNEL = {
|
|||
VARIANT_ESP32C3: {
|
||||
5: adc2_channel_t.ADC2_CHANNEL_0,
|
||||
},
|
||||
VARIANT_ESP32C2: {},
|
||||
VARIANT_ESP32C6: {},
|
||||
VARIANT_ESP32H2: {},
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue