Skip to content

Commit 88ad677

Browse files
authored
fix(docs): Correct i2s.srt api example (espressif#9968)
1 parent bc5efee commit 88ad677

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/en/api/i2s.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,9 @@ Sample code
546546
I2S.read();
547547
available_bytes = I2S.available();
548548
if(available_bytes < buff_size) {
549-
read_bytes = I2S.read(buffer, available_bytes);
549+
read_bytes = I2S.readBytes(buffer, available_bytes);
550550
} else {
551-
read_bytes = I2S.read(buffer, buff_size);
551+
read_bytes = I2S.readBytes(buffer, buff_size);
552552
}
553553
I2S.write(buffer, read_bytes);
554554
I2S.end();

0 commit comments

Comments
 (0)