We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff041e9 commit 0374a00Copy full SHA for 0374a00
src/Driver.h
@@ -753,7 +753,10 @@ class AudioDriverES8311Class : public AudioDriver {
753
754
bool init(codec_config_t codec_cfg) {
755
int mclk_src = pins().getPinID(PinFunction::MCLK_SOURCE);
756
- if (mclk_src == -1) return false;
+ if (mclk_src == -1) {
757
+ AD_LOGW("Pin for PinFunction::MCLK_SOURCE not defined: we assume FROM_MCLK_PIN");
758
+ mclk_src = 0; // = FROM_MCLK_PIN;
759
+ }
760
761
// determine address from data
762
if (i2c_address <= 0) i2c_address = getI2CAddress();
0 commit comments