Skip to content

Commit

Permalink
Remove debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Schuhen committed Mar 9, 2025
1 parent 73a1491 commit 8b1396e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions embassy-stm32/src/can/fdcan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,6 @@ pub type BufferedFdCanSender = super::common::BufferedSender<'static, FdFrame>;

/// Receiver that can be used for receiving CAN frames. Note, each CAN frame will only be received by one receiver.
pub type BufferedFdCanReceiver = super::common::BufferedReceiver<'static, FdEnvelope>;
//pub type BufferedFdCanReceiver = DynamicReceiver<'static, Result<FdEnvelope, BusError>>;

/// Buffered FDCAN Instance
pub struct BufferedCanFd<'d, const TX_BUF_SIZE: usize, const RX_BUF_SIZE: usize> {
Expand Down Expand Up @@ -677,17 +676,14 @@ impl RxMode {
T::registers().regs.ir().write(|w| w.set_rfn(fifonr, true));
match self {
RxMode::NonBuffered(waker) => {
defmt::info!("Rx: NonBuffered");
waker.wake();
}
RxMode::ClassicBuffered(buf) => {
defmt::info!("Rx: Classic");
if let Some(result) = self.try_read::<T>() {
let _ = buf.rx_sender.try_send(result);
}
}
RxMode::FdBuffered(buf) => {
defmt::info!("Rx: Fd");
if let Some(result) = self.try_read_fd::<T>() {
let _ = buf.rx_sender.try_send(result);
}
Expand Down

0 comments on commit 8b1396e

Please sign in to comment.