Skip to content

Commit a8623bb

Browse files
Update write function parameter to const uint8_t pointer.
- Update the write function parameter to accept a constant uint8_t pointer for improved data integrity and security.
1 parent 413da40 commit a8623bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP_I2S/src/ESP_I2S.h

Lines changed: 1 addition & 1 deletion
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)