mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-08 19:36:31 +00:00
Merge pull request #14095 from Meek-HA/patch-2
ESP32 Compile error when I2S_AUDIO is enabled
This commit is contained in:
commit
847203c927
@ -320,7 +320,11 @@ uint32_t SpeakerMic(uint8_t spkr) {
|
|||||||
|
|
||||||
i2s_driver_uninstall(Speak_I2S_NUMBER);
|
i2s_driver_uninstall(Speak_I2S_NUMBER);
|
||||||
if (spkr==MODE_SPK) {
|
if (spkr==MODE_SPK) {
|
||||||
out = new AudioOutputI2S();
|
#ifdef USE_I2S_NO_DAC
|
||||||
|
out = new AudioOutputI2SNoDAC();
|
||||||
|
#else
|
||||||
|
out = new AudioOutputI2S(0, 1);
|
||||||
|
#endif
|
||||||
out->SetPinout(DAC_IIS_BCK, DAC_IIS_WS, DAC_IIS_DOUT);
|
out->SetPinout(DAC_IIS_BCK, DAC_IIS_WS, DAC_IIS_DOUT);
|
||||||
out->SetGain(((float)is2_volume/100.0)*4.0);
|
out->SetGain(((float)is2_volume/100.0)*4.0);
|
||||||
out->stop();
|
out->stop();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user