mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
NANO: Remove NO STOP from readb.
This commit is contained in:
parent
972dec4bbd
commit
d4859f58a8
@ -114,7 +114,7 @@ int cambus_readb(cambus_t *bus, uint8_t slv_addr, uint8_t reg_addr, uint8_t *reg
|
|||||||
|
|
||||||
nrfx_twi_enable(&bus->i2c);
|
nrfx_twi_enable(&bus->i2c);
|
||||||
nrfx_twi_xfer_desc_t desc1 = NRFX_TWI_XFER_DESC_TX(slv_addr, ®_addr, 1);
|
nrfx_twi_xfer_desc_t desc1 = NRFX_TWI_XFER_DESC_TX(slv_addr, ®_addr, 1);
|
||||||
if (nrfx_twi_xfer(&bus->i2c, &desc1, NRFX_TWI_FLAG_TX_NO_STOP) != NRFX_SUCCESS) {
|
if (nrfx_twi_xfer(&bus->i2c, &desc1, 0) != NRFX_SUCCESS) {
|
||||||
ret = -1;
|
ret = -1;
|
||||||
goto i2c_error;
|
goto i2c_error;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user