Skip to content

Send a negative value MCP2515 #111

Open
@verygoodguy

Description

@verygoodguy

Hi,
I'm using the struct
struct can_frame { canid_t can_id; /* 32 bit CAN_ID + EFF/RTR/ERR flags */ __u8 can_dlc; /* frame payload length in byte (0 .. CAN_MAX_DLEN) */ __u8 data[CAN_MAX_DLEN] __attribute__((aligned(8))); }; to send data to mi CAN bus network. Everything is ok but there is a semantic mistake when I try to send negative values.

Checking the struct it's a __u8 so it make sense the data I'm sending is not ok for the library. But how can I handle this situation?
Can anybody help me, please?

Best

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions