Skip to content

<< operator for modm::can::Message in generated code #509

@strongly-typed

Description

@strongly-typed

I have a problem with modm::can::Message

It works in a file included from main.cpp but not in generated code.

./modm/src/modm/communication/other/other_impl.hpp:15:17: error: no match for 'operator<<' (operand types are 'modm::log::Logger' and 'modm::can::Message')
   15 |  MODM_LOG_DEBUG << tx;
      |                 ^~ ~~
      |                    |
      |                    modm::can::Message

I have an example here

Compiles from main

and from examples/linux/logger/other_impl.hpp

but not in modm/communication/other/other_impl.hpp

The generated code in ./modm/src/modm/architecture/interface/can_message.hpp has the operator << included.

I probably do something completely wrong here ... but I cannot see it. Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions