Skip to content

Commit

Permalink
Remove redundant & commented-out debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
ianrrees committed Jun 24, 2021
1 parent b537615 commit 166798f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions hal/src/thumbv6m/usb/bus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -979,19 +979,14 @@ impl Inner {
bank.clear_received_setup_interrupt();
}

// self.print_epstatus(idx, "read");

bank.clear_transfer_complete();

if buf.len() != 0 {
bank.set_ready(false);
}

drop(bank);

match size {
Ok(size) => {
//dbgprint!("UsbBus::read {} bytes ok", size);
dbgprint!(
"UsbBus::read {} bytes from ep {:?} -> {:?}\n",
size,
Expand Down
5 changes: 0 additions & 5 deletions hal/src/thumbv7em/usb/bus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -925,19 +925,14 @@ impl Inner {
bank.clear_received_setup_interrupt();
}

// self.print_epstatus(idx, "read");

bank.clear_transfer_complete();

if buf.len() != 0 {
bank.set_ready(false);
}

drop(bank);

match size {
Ok(size) => {
//dbgprint!("UsbBus::read {} bytes ok", size);
dbgprint!(
"UsbBus::read {} bytes from ep {:?} -> {:?}\n",
size,
Expand Down

0 comments on commit 166798f

Please sign in to comment.