Skip to content

fdcan implementation takes rec::Fdcan, so the other fdcan can't use it #369

@SDEEV

Description

@SDEEV

can.rs:242

impl Can<FDCAN2> { pub fn fdcan2( rb: FDCAN2, prec: rec::Fdcan, ) -> fdcan::FdCan<Self, fdcan::ConfigMode> { prec.enable(); // Enable APB1 peripheral clock

prec is taken and never returned

The underlying trait CanExt forces this behaviour

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions