diff options
| -rw-r--r-- | embassy-stm32/src/can/fdcan.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/can/fdcan.rs b/embassy-stm32/src/can/fdcan.rs index faf8a1176..6144ba520 100644 --- a/embassy-stm32/src/can/fdcan.rs +++ b/embassy-stm32/src/can/fdcan.rs | |||
| @@ -851,12 +851,12 @@ impl<T: Instance> Properties<T> { | |||
| 851 | 851 | ||
| 852 | /// Get the CAN RX error counter | 852 | /// Get the CAN RX error counter |
| 853 | pub fn rx_error_count(&self) -> u8 { | 853 | pub fn rx_error_count(&self) -> u8 { |
| 854 | T::registers().regs.ecr().read().rec() | 854 | T::regs().ecr().read().rec() |
| 855 | } | 855 | } |
| 856 | 856 | ||
| 857 | /// Get the CAN TX error counter | 857 | /// Get the CAN TX error counter |
| 858 | pub fn tx_error_count(&self) -> u8 { | 858 | pub fn tx_error_count(&self) -> u8 { |
| 859 | T::registers().regs.ecr().read().tec() | 859 | T::regs().ecr().read().tec() |
| 860 | } | 860 | } |
| 861 | 861 | ||
| 862 | /// Get the current bus error mode | 862 | /// Get the current bus error mode |
