Skip to content

Commit

Permalink
spi: remove debug UART access
Browse files Browse the repository at this point in the history
  • Loading branch information
eupn committed Jan 11, 2024
1 parent 231e805 commit b86ae7e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,6 @@ impl Spi {
for (byte_out, byte_in) in write.iter().zip(read.iter_mut()) {
self.write_hw(*byte_out as u16)?;
let hw = self.read_hw()?;
// use core::fmt::Write;
// let mut uart = crate::uart::Uart::<crate::uart::Uart1>::new();
// writeln!(uart, "read hw: {:02x} | {:08b}", hw, hw).ok();
*byte_in = hw as u8;
}

Expand Down Expand Up @@ -324,12 +321,6 @@ impl Spi {
while timeout > 0 {
let curr_status = self.status();

if timeout - 1 == 0 {
use core::fmt::Write;
let mut uart = crate::uart::Uart::<crate::uart::Uart1>::new();
writeln!(uart, "About to timeout, status: {:?}", curr_status).ok();
}

if curr_status.contains(status) {
return Ok(());
}
Expand Down

0 comments on commit b86ae7e

Please sign in to comment.