mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(i2c): make write_buffer const in i2c_master_transmit_multi_buffer_info_t
Fixes https://github.com/espressif/esp-idf/issues/16890
This commit is contained in:
committed by
Michael (XIAO Xufeng)
parent
7863b3c419
commit
41eb94c309
@@ -90,7 +90,7 @@ typedef struct {
|
||||
* @brief I2C master transmit buffer information structure
|
||||
*/
|
||||
typedef struct {
|
||||
uint8_t *write_buffer; /*!< Pointer to buffer to be written. */
|
||||
const uint8_t *write_buffer; /*!< Pointer to buffer to be written. */
|
||||
size_t buffer_size; /*!< Size of data to be written. */
|
||||
} i2c_master_transmit_multi_buffer_info_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user