diff options
author | Ryan <fauxpark@gmail.com> | 2024-03-27 23:41:53 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 12:41:53 +0000 |
commit | 01be746fc41d7c0860df379849b5fa79ed6c5587 (patch) | |
tree | 54d28e566092a9718e1d17e4b717303704ab951e /keyboards/dc01 | |
parent | 148d66fc9f46b9186ec16e8b33f63bf267b7bb82 (diff) |
Update I2C API usage in keyboard code (#23360)
Diffstat (limited to 'keyboards/dc01')
-rw-r--r-- | keyboards/dc01/left/matrix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/dc01/left/matrix.c b/keyboards/dc01/left/matrix.c index fd21d4333b..39e5be5a1d 100644 --- a/keyboards/dc01/left/matrix.c +++ b/keyboards/dc01/left/matrix.c @@ -388,7 +388,7 @@ static void unselect_cols(void) // Complete rows from other modules over i2c i2c_status_t i2c_transaction(uint8_t address, uint32_t mask, uint8_t col_offset) { uint8_t data[MATRIX_ROWS + 1]; - i2c_status_t status = i2c_readReg(address, 0x01, data, (MATRIX_ROWS + 1), 5); + i2c_status_t status = i2c_read_register(address, 0x01, data, (MATRIX_ROWS + 1), 5); for (uint8_t i = 0; i < (MATRIX_ROWS) && status >= 0; i++) { //assemble slave matrix in main matrix matrix[i] &= mask; //mask bits to keep |