Skip to content

Commit 5686675

Browse files
committed
AR bugfix
missing "break" for AC101 setup
1 parent f771ded commit 5686675

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

usermods/audioreactive/audio_reactive.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,6 +2076,8 @@ class AudioReactive : public Usermod {
20762076
if ((sclPin >= 0) && (i2c_scl < 0)) i2c_scl = sclPin;
20772077
if (i2c_sda >= 0) sdaPin = -1; // -1 = use global
20782078
if (i2c_scl >= 0) sclPin = -1;
2079+
if (audioSource) audioSource->initialize(i2swsPin, i2ssdPin, i2sckPin, mclkPin);
2080+
break;
20792081
case 9:
20802082
DEBUGSR_PRINTLN(F("AR: ES8311 Source (Mic)"));
20812083
audioSource = new ES8311Source(SAMPLE_RATE, BLOCK_SIZE, 1.0f);

0 commit comments

Comments
 (0)