diff --git a/src/twi.rs b/src/twi.rs index b1389ae8c1cdb6f2ec1f9ca61bf6a1bb9e411019..5d73229e96dfac3b85a5fe75611942dd34e5679d 100644 --- a/src/twi.rs +++ b/src/twi.rs @@ -8,7 +8,6 @@ use nrf51_hal::twi::Error; use nrf51_pac::twi0::frequency::FREQUENCY_A; use nrf51_pac::{GPIO, Interrupt, TWI0}; use nrf51_pac::interrupt; -use crate::led::Red; const FREQ: FREQUENCY_A = FREQUENCY_A::K400; @@ -207,16 +206,10 @@ unsafe fn SPI0_TWI0() { if twi.twi.events_rxdready.read().bits() != 0 { twi.twi.events_rxdready.reset(); - if twi.rec.load(Ordering::SeqCst) { - Red.on(); - } twi.rec.store(true, Ordering::SeqCst); } if twi.twi.events_txdsent.read().bits() != 0 { twi.twi.events_txdsent.reset(); - if twi.sent.load(Ordering::SeqCst) { - Red.on(); - } twi.sent.store(true, Ordering::SeqCst); } if twi.twi.events_stopped.read().bits() != 0 {