diff options
author | Joel Challis <git@zvecr.com> | 2021-10-07 01:45:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 11:45:59 +1100 |
commit | 951331cd8d24480bb95cdf2fe4527ea99b32f1c1 (patch) | |
tree | d357733e07b8d376d51d6b682f7769f0863ac2e2 /platforms | |
parent | b2a186cf92d91bbb7f98fff68c4edf571909bf89 (diff) | |
download | qmk_firmware-951331cd8d24480bb95cdf2fe4527ea99b32f1c1.tar.gz qmk_firmware-951331cd8d24480bb95cdf2fe4527ea99b32f1c1.zip |
Fix i2c_readReg16 (#14730)
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/chibios/drivers/i2c_master.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platforms/chibios/drivers/i2c_master.c b/platforms/chibios/drivers/i2c_master.c index 312b4c7d0f..63e85ae87d 100644 --- a/platforms/chibios/drivers/i2c_master.c +++ b/platforms/chibios/drivers/i2c_master.c @@ -137,7 +137,7 @@ i2c_status_t i2c_readReg16(uint8_t devaddr, uint16_t regaddr, uint8_t* data, uin i2c_address = devaddr; i2cStart(&I2C_DRIVER, &i2cconfig); uint8_t register_packet[2] = {regaddr >> 8, regaddr & 0xFF}; - msg_t status = i2cMasterTransmitTimeout(&I2C_DRIVER, (i2c_address >> 1), ®ister_packet, 2, data, length, TIME_MS2I(timeout)); + msg_t status = i2cMasterTransmitTimeout(&I2C_DRIVER, (i2c_address >> 1), register_packet, 2, data, length, TIME_MS2I(timeout)); return chibios_to_qmk(&status); } |