From 0e6694144fc13252d04929a4d116d3d720f762cb Mon Sep 17 00:00:00 2001 From: Efthymios Kalyviotis Date: Sun, 19 Nov 2017 23:27:55 +0200 Subject: [PATCH] Fixed Repeated-start in I2C --- extras/i2c/i2c.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/extras/i2c/i2c.c b/extras/i2c/i2c.c index 6379736..4cdd02f 100644 --- a/extras/i2c/i2c.c +++ b/extras/i2c/i2c.c @@ -344,8 +344,6 @@ int i2c_slave_read(uint8_t bus, uint8_t slave_addr, const uint8_t *data, uint8_t goto error; if (!i2c_write(bus, *data)) goto error; - if (!i2c_stop(bus)) - goto error; } i2c_start(bus); if (!i2c_write(bus, slave_addr << 1 | 1)) // Slave address + read