Skip to content

Commit 3d4ecff

Browse files
add missing codec id in init method
1 parent 08bb5e8 commit 3d4ecff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/es8388.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ void ES8388_Setup(int codec_id)
484484
Serial.printf(" SCL: %d\n", ES8388_PIN_SCL);
485485
Serial.printf(" freq: %" PRIu32 "\n", i2c_freq);
486486

487-
while (not ES8388_begin(ES8388_PIN_SDA, ES8388_PIN_SCL, i2c_freq))
487+
while (not ES8388_begin(codec_id, ES8388_PIN_SDA, ES8388_PIN_SCL, i2c_freq))
488488
{
489489
Serial.printf("Failed!\n");
490490
Serial.printf("It may be possible that SCL and SDA are incorrect\n");

0 commit comments

Comments
 (0)