Don't crash with invalid adc pin (#6059)

* Don't crash with invalid adc pin

* lint
This commit is contained in:
Samuel Sieb 2024-01-07 19:39:53 -08:00 committed by GitHub
parent a2e152ad12
commit fdd54d74a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: {},
}