From 891e025a95a79080ca47af7cb4daa2392c877cc0 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Wed, 24 Jan 2024 18:12:51 +0800 Subject: [PATCH] fix i2c bug --- integration/nrfx/legacy/nrf_drv_twi.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integration/nrfx/legacy/nrf_drv_twi.h b/integration/nrfx/legacy/nrf_drv_twi.h index 06d7b29..a298aaf 100644 --- a/integration/nrfx/legacy/nrf_drv_twi.h +++ b/integration/nrfx/legacy/nrf_drv_twi.h @@ -335,7 +335,7 @@ __STATIC_INLINE ret_code_t nrf_drv_twi_tx(nrf_drv_twi_t const * p_instance, uint8_t address, uint8_t const * p_data, - uint8_t length, + uint16_t length, bool no_stop); /** @@ -360,7 +360,7 @@ __STATIC_INLINE ret_code_t nrf_drv_twi_rx(nrf_drv_twi_t const * p_instance, uint8_t address, uint8_t * p_data, - uint8_t length); + uint16_t length); /** * @brief Function for preparing a TWI transfer. @@ -535,7 +535,7 @@ __STATIC_INLINE ret_code_t nrf_drv_twi_tx(nrf_drv_twi_t const * p_instance, uint8_t address, uint8_t const * p_data, - uint8_t length, + uint16_t length, bool no_stop) { ret_code_t result = 0; @@ -556,7 +556,7 @@ __STATIC_INLINE ret_code_t nrf_drv_twi_rx(nrf_drv_twi_t const * p_instance, uint8_t address, uint8_t * p_data, - uint8_t length) + uint16_t length) { ret_code_t result = 0; if (NRF_DRV_TWI_USE_TWIM)