correct i2c max len

This commit is contained in:
hathach 2018-12-28 21:14:27 +07:00
parent a4ee80832a
commit 6b0d93cea3
No known key found for this signature in database
GPG Key ID: 2FA891220FBFD581

View File

@ -39,7 +39,7 @@
// all TWI instances have the same max size
// 16 bits for 840, 10 bits for 810, 8 bits for 832
#define I2C_MAX_XFER_LEN ( 1UL << TWIM0_EASYDMA_MAXCNT_SIZE)
#define I2C_MAX_XFER_LEN ((1UL << TWIM0_EASYDMA_MAXCNT_SIZE) - 1)
STATIC twim_peripheral_t twim_peripherals[] = {
#if NRFX_CHECK(NRFX_TWIM0_ENABLED)