mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-16 12:51:47 +00:00
Fix extra start in i2c_set
This commit is contained in:
parent
ab571da499
commit
75f6c27763
@ -161,5 +161,10 @@ int i2c_set(uint8_t addr, uint8_t reg, uint8_t* data, int length) {
|
|||||||
res = i2c_write(®, 1);
|
res = i2c_write(®, 1);
|
||||||
if (res < 0) return res;
|
if (res < 0) return res;
|
||||||
|
|
||||||
return i2c_send(addr, data, length);
|
res = i2c_write(data, length);
|
||||||
|
if (res < 0) return res;
|
||||||
|
|
||||||
|
i2c_stop();
|
||||||
|
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user