diff options
-rw-r--r-- | i2c.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -17,7 +17,7 @@ void interrupt<Interrupt::I2C1_ER>() { void I2C::irq_ev() { uint32_t sr1 = I2C1.SR1; - uint32_t sr2 = I2C1.SR2; + I2C1.SR2; // EV5, SB = 1: Start condition sent. if(sr1 & 0x01) { |