aboutsummaryrefslogtreecommitdiff
path: root/keyboards/hotdox/left.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/hotdox/left.c')
-rw-r--r--keyboards/hotdox/left.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/keyboards/hotdox/left.c b/keyboards/hotdox/left.c
index f963ecdae7..ac51322476 100644
--- a/keyboards/hotdox/left.c
+++ b/keyboards/hotdox/left.c
@@ -1,5 +1,6 @@
#include "action.h"
#include "left.h"
+#include "print.h"
#include "wait.h"
bool i2c_initialized = false;
@@ -99,7 +100,7 @@ i2c_status_t left_write(uint8_t reg, uint8_t data)
i2c_status_t ret;
- ret = i2c_writeReg(I2C_ADDR, reg, &data, sizeof(data), HOTDOX_I2C_TIMEOUT);
+ ret = i2c_write_register(I2C_ADDR, reg, &data, sizeof(data), HOTDOX_I2C_TIMEOUT);
return ret;
}
@@ -112,7 +113,7 @@ i2c_status_t left_read(uint8_t reg, uint8_t *data)
}
i2c_status_t ret = 0;
- ret = i2c_readReg(I2C_ADDR, reg, data, 1, HOTDOX_I2C_TIMEOUT);
+ ret = i2c_read_register(I2C_ADDR, reg, data, 1, HOTDOX_I2C_TIMEOUT);
return ret;
}