From ce87dce512ceab65405de7125460d227e3467859 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 20 Oct 2020 20:54:26 -0600 Subject: [PATCH] Allow repeat start --- keyboards/system76/launch_beta_1/i2c.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/keyboards/system76/launch_beta_1/i2c.c b/keyboards/system76/launch_beta_1/i2c.c index 6d4627e35bb..f6becd6a5dc 100644 --- a/keyboards/system76/launch_beta_1/i2c.c +++ b/keyboards/system76/launch_beta_1/i2c.c @@ -12,9 +12,8 @@ void i2c_init(unsigned long baud) { int i2c_start(uint8_t addr, bool read) { uint32_t count; + uint8_t twst; - // reset TWI control register - TWCR = 0; // transmit START condition TWCR = (1<