From ca83d7c4f2bd110fec8c19d126e703625a9008ff Mon Sep 17 00:00:00 2001 From: Tomasz Ziobrowski Date: Thu, 17 Jun 2021 00:36:22 +0200 Subject: [PATCH] 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 --- .../tree/valuecan4/settings/valuecan4industrialsettings.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/icsneo/device/tree/valuecan4/settings/valuecan4industrialsettings.h b/include/icsneo/device/tree/valuecan4/settings/valuecan4industrialsettings.h index b28c787..343b3d9 100644 --- a/include/icsneo/device/tree/valuecan4/settings/valuecan4industrialsettings.h +++ b/include/icsneo/device/tree/valuecan4/settings/valuecan4industrialsettings.h @@ -12,7 +12,7 @@ class ValueCAN4IndustrialSettings : public IDeviceSettings { public: ValueCAN4IndustrialSettings(std::shared_ptr com) : IDeviceSettings(com, sizeof(valuecan4_industrial_settings_t)) {} const CAN_SETTINGS* getCANSettingsFor(Network net) const override { - auto cfg = getStructurePointer(); + auto cfg = getStructurePointer(); if(cfg == nullptr) return nullptr; switch(net.getNetID()) { @@ -25,7 +25,7 @@ public: } } const CANFD_SETTINGS* getCANFDSettingsFor(Network net) const override { - auto cfg = getStructurePointer(); + auto cfg = getStructurePointer(); if(cfg == nullptr) return nullptr; switch(net.getNetID()) {