Skip to content

Commit 7942da3

Browse files
committed
fix(build): Use correct method signature
1 parent 9fa5a4a commit 7942da3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/ESP_I2S/src/ESP_I2S.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ size_t I2SClass::readBytes(char *buffer, size_t size) {
819819
return total_size;
820820
}
821821

822-
size_t I2SClass::write(uint8_t *buffer, size_t size) {
822+
size_t I2SClass::write(const uint8_t *buffer, size_t size) {
823823
size_t written = 0;
824824
size_t bytes_sent = 0;
825825
last_error = ESP_FAIL;

libraries/ESP_I2S/src/ESP_I2S.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class I2SClass : public Stream {
6262
bool end();
6363

6464
size_t readBytes(char *buffer, size_t size);
65-
size_t write(uint8_t *buffer, size_t size);
65+
size_t write(const uint8_t *buffer, size_t size);
6666

6767
i2s_chan_handle_t txChan();
6868
uint32_t txSampleRate();

0 commit comments

Comments
 (0)