1 parent a4ee808 commit 6b0d93cCopy full SHA for 6b0d93c
1 file changed
ports/nrf/common-hal/busio/I2C.c
@@ -39,7 +39,7 @@
39
40
// all TWI instances have the same max size
41
// 16 bits for 840, 10 bits for 810, 8 bits for 832
42
-#define I2C_MAX_XFER_LEN ( 1UL << TWIM0_EASYDMA_MAXCNT_SIZE)
+#define I2C_MAX_XFER_LEN ((1UL << TWIM0_EASYDMA_MAXCNT_SIZE) - 1)
43
44
STATIC twim_peripheral_t twim_peripherals[] = {
45
#if NRFX_CHECK(NRFX_TWIM0_ENABLED)
0 commit comments