Skip to content

Commit 8447ea4

Browse files
author
Daniel Liebler
committed
changed to the more readable variant +=
1 parent 4e1d8fe commit 8447ea4

File tree

1 file changed

+1
-1
lines changed
  • libraries/Wire/src/utility

1 file changed

+1
-1
lines changed

libraries/Wire/src/utility/twi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ i2c_status_e i2c_slave_write_IT(i2c_t *obj, uint8_t *data, uint16_t size)
849849
obj->i2cTxRxBuffer[obj->i2cTxRxBufferSize + i] = *(data + i);
850850
}
851851

852-
size = size + obj->i2cTxRxBufferSize;
852+
size += obj->i2cTxRxBufferSize;
853853
obj->i2cTxRxBufferSize = size;
854854
}
855855
return ret;

0 commit comments

Comments
 (0)