Fixed ValueCan4 Industrial settings interpretation.
Description: Possibly was an type - casting was done different structure. Was not possible to determine or setup settings for ValueCan4 Industrial. Whitespace fixed from the original commit Co-authored-by: Paul Hollinsky <phollinsky@intrepidcs.com>pull/49/head
parent
4da5f63e57
commit
ca83d7c4f2
|
|
@ -12,7 +12,7 @@ class ValueCAN4IndustrialSettings : public IDeviceSettings {
|
||||||
public:
|
public:
|
||||||
ValueCAN4IndustrialSettings(std::shared_ptr<Communication> com) : IDeviceSettings(com, sizeof(valuecan4_industrial_settings_t)) {}
|
ValueCAN4IndustrialSettings(std::shared_ptr<Communication> com) : IDeviceSettings(com, sizeof(valuecan4_industrial_settings_t)) {}
|
||||||
const CAN_SETTINGS* getCANSettingsFor(Network net) const override {
|
const CAN_SETTINGS* getCANSettingsFor(Network net) const override {
|
||||||
auto cfg = getStructurePointer<valuecan4_1_2_settings_t>();
|
auto cfg = getStructurePointer<valuecan4_industrial_settings_t>();
|
||||||
if(cfg == nullptr)
|
if(cfg == nullptr)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
switch(net.getNetID()) {
|
switch(net.getNetID()) {
|
||||||
|
|
@ -25,7 +25,7 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const CANFD_SETTINGS* getCANFDSettingsFor(Network net) const override {
|
const CANFD_SETTINGS* getCANFDSettingsFor(Network net) const override {
|
||||||
auto cfg = getStructurePointer<valuecan4_1_2_settings_t>();
|
auto cfg = getStructurePointer<valuecan4_industrial_settings_t>();
|
||||||
if(cfg == nullptr)
|
if(cfg == nullptr)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
switch(net.getNetID()) {
|
switch(net.getNetID()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue