From 88ad677f00d8c7c92b068a15d95a2d2475ffc7ce Mon Sep 17 00:00:00 2001 From: Dawid Strzybny Date: Mon, 1 Jul 2024 11:00:11 +0200 Subject: [PATCH] fix(docs): Correct i2s.srt api example (#9968) --- docs/en/api/i2s.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/api/i2s.rst b/docs/en/api/i2s.rst index f6ce9429e..f67713c75 100644 --- a/docs/en/api/i2s.rst +++ b/docs/en/api/i2s.rst @@ -546,9 +546,9 @@ Sample code I2S.read(); available_bytes = I2S.available(); if(available_bytes < buff_size) { - read_bytes = I2S.read(buffer, available_bytes); + read_bytes = I2S.readBytes(buffer, available_bytes); } else { - read_bytes = I2S.read(buffer, buff_size); + read_bytes = I2S.readBytes(buffer, buff_size); } I2S.write(buffer, read_bytes); I2S.end();