From 4e245db94e90e56c71d1d0613febe331d004a062 Mon Sep 17 00:00:00 2001 From: Paul Hollinsky Date: Tue, 6 Apr 2021 18:03:41 -0400 Subject: [PATCH] ValueCAN 4-2EL: Fix wrong structure used in settings The old structure lined up with the correct one, so the wrong way did work, but it was just by sheer luck. --- .../device/tree/valuecan4/settings/valuecan4-4-2elsettings.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/icsneo/device/tree/valuecan4/settings/valuecan4-4-2elsettings.h b/include/icsneo/device/tree/valuecan4/settings/valuecan4-4-2elsettings.h index 8a2c382..deeb0a1 100644 --- a/include/icsneo/device/tree/valuecan4/settings/valuecan4-4-2elsettings.h +++ b/include/icsneo/device/tree/valuecan4/settings/valuecan4-4-2elsettings.h @@ -12,7 +12,7 @@ class ValueCAN4_4_2ELSettings : public IDeviceSettings { public: ValueCAN4_4_2ELSettings(std::shared_ptr com) : IDeviceSettings(com, sizeof(valuecan4_4_2el_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()) {