Enums in C are forced to be ints. However, the custom ID types in can_command_list.h such as PowerLineID are meant to be a single byte in width. To rectify this, custom ID types should be typedef'd to uint8_t. The enum keys can become #defines instead.
Enums in C are forced to be
int
s. However, the custom ID types incan_command_list.h
such as PowerLineID are meant to be a single byte in width. To rectify this, custom ID types should betypedef
'd touint8_t
. The enum keys can become#define
s instead.