diff --git a/i2c_master.c b/i2c_master.c index e2de25e..8fc17c5 100644 --- a/i2c_master.c +++ b/i2c_master.c @@ -88,9 +88,6 @@ enum i2c_master_rc i2c_master_start(void) // don't check BUSY flag as this might be for a re-start I2C_CR2 |= I2C_CR2_START; // sent start condition - // in theory, when the START condition is sent, CR2_START is cleared, SR1_SB is set, and SR3_MSL is sent - // in practice this is not synchronous, and the TRM doesn't document it - I2C_SR2 = 0; // clear error flags rim(); // enable interrupts while ((I2C_CR2 & I2C_CR2_START) || !(I2C_SR1 & I2C_SR1_SB) || !(I2C_SR3 & I2C_SR3_MSL)) { // wait until start condition has been accepted, send, and we are in aster mode