aboutsummaryrefslogtreecommitdiff
path: root/platforms
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 /platforms
parent148d66fc9f46b9186ec16e8b33f63bf267b7bb82 (diff)
downloadqmk_firmware-01be746fc41d7c0860df379849b5fa79ed6c5587.tar.gz
qmk_firmware-01be746fc41d7c0860df379849b5fa79ed6c5587.zip
Update I2C API usage in keyboard code (#23360)
Diffstat (limited to 'platforms')
-rw-r--r--platforms/chibios/drivers/i2c_master.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platforms/chibios/drivers/i2c_master.c b/platforms/chibios/drivers/i2c_master.c
index ad11d850dd..0d5fb1e985 100644
--- a/platforms/chibios/drivers/i2c_master.c
+++ b/platforms/chibios/drivers/i2c_master.c
@@ -206,5 +206,5 @@ __attribute__((weak)) i2c_status_t i2c_ping_address(uint8_t address, uint16_t ti
// Best effort instead tries reading register 0 which will either succeed or timeout.
// This approach may produce false negative results for I2C devices that do not respond to a register 0 read request.
uint8_t data = 0;
- return i2c_readReg(address, 0, &data, sizeof(data), timeout);
+ return i2c_read_register(address, 0, &data, sizeof(data), timeout);
} \ No newline at end of file