Skip to content

Commit 90d8297

Browse files
committed
Add can preset entry constructor
1 parent ddf5127 commit 90d8297

File tree

1 file changed

+1
-0
lines changed
  • Firmware/FFBoard/Inc

1 file changed

+1
-0
lines changed

Firmware/FFBoard/Inc/CAN.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class CANPortHardwareConfig{
4141
const CAN_INITTYPE init;
4242
const uint32_t speed;
4343
const char* name;
44+
constexpr PresetEntry(const CAN_INITTYPE init,const uint32_t speed,const char* name):init(init),speed(speed),name(name){}
4445
};
4546
constexpr CANPortHardwareConfig(const bool canChangeSpeed,std::span<const PresetEntry> presets_list)
4647
: canChangeSpeed(canChangeSpeed),presets(presets_list){}

0 commit comments

Comments
 (0)