summaryrefslogtreecommitdiff
path: root/i2c.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'i2c.cpp')
-rw-r--r--i2c.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/i2c.cpp b/i2c.cpp
index ff081ae..cee72ec 100644
--- a/i2c.cpp
+++ b/i2c.cpp
@@ -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) {