[i2s_audio] Bugfix: cast adc_channel_t to adc1_channel_t (#9688)

This commit is contained in:
Kevin Ahrendt 2025-07-18 21:52:46 +01:00 committed by GitHub
parent 60350e8abd
commit 6f74decd79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,8 +36,8 @@ class I2SAudioMicrophone : public I2SAudioIn, public microphone::Microphone, pub
#ifdef USE_I2S_LEGACY
#if SOC_I2S_SUPPORTS_ADC
void set_adc_channel(adc1_channel_t channel) {
this->adc_channel_ = channel;
void set_adc_channel(adc_channel_t channel) {
this->adc_channel_ = (adc1_channel_t) channel;
this->adc_ = true;
}
#endif