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 /platforms | |
| parent | 148d66fc9f46b9186ec16e8b33f63bf267b7bb82 (diff) | |
Update I2C API usage in keyboard code (#23360)
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 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 | |||
| 206 | // Best effort instead tries reading register 0 which will either succeed or timeout. | 206 | // Best effort instead tries reading register 0 which will either succeed or timeout. |
| 207 | // This approach may produce false negative results for I2C devices that do not respond to a register 0 read request. | 207 | // This approach may produce false negative results for I2C devices that do not respond to a register 0 read request. |
| 208 | uint8_t data = 0; | 208 | uint8_t data = 0; |
| 209 | return i2c_readReg(address, 0, &data, sizeof(data), timeout); | 209 | return i2c_read_register(address, 0, &data, sizeof(data), timeout); |
| 210 | } \ No newline at end of file | 210 | } \ No newline at end of file |
