Skip to content

Commit

Permalink
Fix extra start in i2c_set
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Oct 21, 2020
1 parent ab571da commit 75f6c27
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion keyboards/system76/launch_beta_1/i2c.c
Expand Up @@ -161,5 +161,10 @@ int i2c_set(uint8_t addr, uint8_t reg, uint8_t* data, int length) {
res = i2c_write(&reg, 1);
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;
}

0 comments on commit 75f6c27

Please sign in to comment.