aboutsummaryrefslogtreecommitdiff
path: root/keyboards/system76
diff options
context:
space:
mode:
authorRyan <[email protected]>2024-03-27 23:41:53 +1100
committerGitHub <[email protected]>2024-03-27 12:41:53 +0000
commit01be746fc41d7c0860df379849b5fa79ed6c5587 (patch)
tree54d28e566092a9718e1d17e4b717303704ab951e /keyboards/system76
parent148d66fc9f46b9186ec16e8b33f63bf267b7bb82 (diff)
downloadqmk_firmware-01be746fc41d7c0860df379849b5fa79ed6c5587.tar.gz
qmk_firmware-01be746fc41d7c0860df379849b5fa79ed6c5587.zip
Update I2C API usage in keyboard code (#23360)
Diffstat (limited to 'keyboards/system76')
-rw-r--r--keyboards/system76/launch_1/usb_mux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/system76/launch_1/usb_mux.c b/keyboards/system76/launch_1/usb_mux.c
index dd51b7c4b2..7ce1da07aa 100644
--- a/keyboards/system76/launch_1/usb_mux.c
+++ b/keyboards/system76/launch_1/usb_mux.c
@@ -79,7 +79,7 @@ i2c_status_t usb7206_read_reg(struct USB7206* self, uint32_t addr, uint8_t* data
uint16_t read = 0x0006; // Buffer address 6 to skip header
uint8_t data_with_buffer_length[length];
- status = i2c_readReg16((self->addr << 1), read, data_with_buffer_length, length, I2C_TIMEOUT);
+ status = i2c_read_register16((self->addr << 1), read, data_with_buffer_length, length, I2C_TIMEOUT);
for (uint16_t i = 0; i < (length - 1) && status >= 0; i++) {
data[i] = data_with_buffer_length[i+1];