mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
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>
This commit is contained in:
committed by
Paul Hollinsky
parent
4da5f63e57
commit
ca83d7c4f2
@@ -12,7 +12,7 @@ class ValueCAN4IndustrialSettings : public IDeviceSettings {
|
||||
public:
|
||||
ValueCAN4IndustrialSettings(std::shared_ptr<Communication> com) : IDeviceSettings(com, sizeof(valuecan4_industrial_settings_t)) {}
|
||||
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)
|
||||
return nullptr;
|
||||
switch(net.getNetID()) {
|
||||
@@ -25,7 +25,7 @@ public:
|
||||
}
|
||||
}
|
||||
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)
|
||||
return nullptr;
|
||||
switch(net.getNetID()) {
|
||||
|
||||
Reference in New Issue
Block a user