summaryrefslogtreecommitdiffstats
path: root/keyboards
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2019-03-13 22:08:21 +0100
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-03-13 22:08:21 +0100
commit4a908288f13e53258a3ab91574bfd1e9164c126e (patch)
treeb6203e93cee7d84b06a64506ba8b0ceb1f3b7d89 /keyboards
parentf34244a871310fac4ab27f3fd75dc44626ed4eb9 (diff)
downloadqmk_firmware-4a908288f13e53258a3ab91574bfd1e9164c126e.tar.gz
qmk_firmware-4a908288f13e53258a3ab91574bfd1e9164c126e.tar.xz
Fix i2c calls for HotDox keyboard (#5387)
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/hotdox/left.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/hotdox/left.c b/keyboards/hotdox/left.c
index ae56b1816..970d36f1b 100644
--- a/keyboards/hotdox/left.c
+++ b/keyboards/hotdox/left.c
@@ -39,7 +39,7 @@ void left_scan(void)
if (ret == 0)
{
- i2c_stop(HOTDOX_I2C_TIMEOUT);
+ i2c_stop();
if (!i2c_initialized)
{
@@ -102,10 +102,10 @@ uint8_t left_write(uint8_t reg, uint8_t data)
ret = i2c_start(I2C_ADDR_WRITE, HOTDOX_I2C_TIMEOUT); if (ret) goto out;
ret = i2c_write(reg, HOTDOX_I2C_TIMEOUT); if (ret) goto out;
- ret = i2c_write(data, HOTDOX_I2C_TIMEOUT);
+ ret = i2c_write(data, HOTDOX_I2C_TIMEOUT);
out:
- i2c_stop(HOTDOX_I2C_TIMEOUT);
+ i2c_stop();
return ret;
}
@@ -125,6 +125,6 @@ uint8_t left_read(uint8_t reg, uint8_t *data)
*data = i2c_read_nack(HOTDOX_I2C_TIMEOUT);
out:
- i2c_stop(HOTDOX_I2C_TIMEOUT);
+ i2c_stop();
return ret;
}