Skip to content

Commit

Permalink
fix(build): Use correct method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
me-no-dev committed Aug 19, 2024
1 parent 9fa5a4a commit 7942da3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/ESP_I2S/src/ESP_I2S.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ size_t I2SClass::readBytes(char *buffer, size_t size) {
return total_size;
}

size_t I2SClass::write(uint8_t *buffer, size_t size) {
size_t I2SClass::write(const uint8_t *buffer, size_t size) {
size_t written = 0;
size_t bytes_sent = 0;
last_error = ESP_FAIL;
Expand Down
2 changes: 1 addition & 1 deletion libraries/ESP_I2S/src/ESP_I2S.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class I2SClass : public Stream {
bool end();

size_t readBytes(char *buffer, size_t size);
size_t write(uint8_t *buffer, size_t size);
size_t write(const uint8_t *buffer, size_t size);

i2s_chan_handle_t txChan();
uint32_t txSampleRate();
Expand Down

0 comments on commit 7942da3

Please sign in to comment.