We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddf5127 commit 90d8297Copy full SHA for 90d8297
1 file changed
Firmware/FFBoard/Inc/CAN.h
@@ -41,6 +41,7 @@ class CANPortHardwareConfig{
41
const CAN_INITTYPE init;
42
const uint32_t speed;
43
const char* name;
44
+ constexpr PresetEntry(const CAN_INITTYPE init,const uint32_t speed,const char* name):init(init),speed(speed),name(name){}
45
};
46
constexpr CANPortHardwareConfig(const bool canChangeSpeed,std::span<const PresetEntry> presets_list)
47
: canChangeSpeed(canChangeSpeed),presets(presets_list){}
0 commit comments