Skip to content

Commit 9a28d0d

Browse files
committed
STM32 i2s correction
1 parent c7b62dc commit 9a28d0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AudioI2S/I2SSTM32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ class I2SDriverSTM32 {
325325
}
326326

327327
void setupPins(){
328-
if (cfg.pin_bck != -1 || cfg.pin_ws != -1 || cfg.pin_data != -1) {
328+
if (cfg.pin_bck == -1 || cfg.pin_ws == -1 || cfg.pin_data == -1) {
329329
LOGW("pins ignored: used from stm32-i2s");
330330
} else {
331331
LOGI("setting up pins for stm32-i2s");

0 commit comments

Comments
 (0)