summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-10-10 01:11:58 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-10-10 01:11:58 +0200
commitdad025934dc59d58b93a5067694d8a499b8117af (patch)
tree8c5e53a90f8687e02daa6d3f7fd54e1b2314f9ff
parent88162aeb7becabf7491585fb85b71ba99f1d3de3 (diff)
Fix unused variable warning.
-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) {