summaryrefslogtreecommitdiff
path: root/drivers/oled
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2024-01-16 13:26:40 +1100
committerGitHub <noreply@github.com>2024-01-16 02:26:40 +0000
commita522b1f15627c69f94cbc814968be5a63519b8e3 (patch)
tree2a6ea5f05d6d728230294dd4a298e0343a22be9d /drivers/oled
parente1f59a6efc793522155db35155f6fbdc0504d504 (diff)
i2c: rename read/write register functions (#22905)
Diffstat (limited to 'drivers/oled')
-rw-r--r--drivers/oled/oled_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/oled/oled_driver.c b/drivers/oled/oled_driver.c
index 4a2121cd7c..c674675d11 100644
--- a/drivers/oled/oled_driver.c
+++ b/drivers/oled/oled_driver.c
@@ -253,7 +253,7 @@ __attribute__((weak)) bool oled_send_data(const uint8_t *data, uint16_t size) {
spi_stop();
return true;
#elif defined(OLED_TRANSPORT_I2C)
- i2c_status_t status = i2c_writeReg((OLED_DISPLAY_ADDRESS << 1), I2C_DATA, data, size, OLED_I2C_TIMEOUT);
+ i2c_status_t status = i2c_write_register((OLED_DISPLAY_ADDRESS << 1), I2C_DATA, data, size, OLED_I2C_TIMEOUT);
return (status == I2C_STATUS_SUCCESS);
#endif
}