22//
33// SPDX-License-Identifier: MIT
44
5+ #pragma once
56
67#include " silkit/services/flexray/all.hpp"
78#include " silkit/services/flexray/string_utils.hpp"
@@ -91,7 +92,7 @@ class FlexrayNode
9192
9293private:
9394 IFlexrayController* _flexrayController{nullptr };
94- FlexrayControllerConfig _controllerConfig;
95+ FlexrayControllerConfig _controllerConfig{} ;
9596 FlexrayPocStatusEvent _lastPocStatus{};
9697 int _msgId = 0 ;
9798 bool _configured{false };
@@ -217,9 +218,9 @@ class FlexrayNode
217218 }
218219};
219220
220- auto MakeControllerConfig () -> FlexrayControllerConfig
221+ inline auto MakeControllerConfig () -> FlexrayControllerConfig
221222{
222- FlexrayClusterParameters clusterParams;
223+ FlexrayClusterParameters clusterParams{} ;
223224 clusterParams.gColdstartAttempts = 8 ;
224225 clusterParams.gCycleCountMax = 63 ;
225226 clusterParams.gdActionPointOffset = 2 ;
@@ -241,7 +242,7 @@ auto MakeControllerConfig() -> FlexrayControllerConfig
241242 clusterParams.gPayloadLengthStatic = 13 ;
242243 clusterParams.gSyncFrameIDCountMax = 15 ;
243244
244- FlexrayNodeParameters nodeParams;
245+ FlexrayNodeParameters nodeParams{} ;
245246 nodeParams.pAllowHaltDueToClock = 1 ;
246247 nodeParams.pAllowPassiveToActive = 0 ;
247248 nodeParams.pChannels = FlexrayChannel::AB;
@@ -265,7 +266,7 @@ auto MakeControllerConfig() -> FlexrayControllerConfig
265266 nodeParams.pdMicrotick = FlexrayClockPeriod::T25NS;
266267 nodeParams.pSamplesPerMicrotick = 2 ;
267268
268- FlexrayControllerConfig config;
269+ FlexrayControllerConfig config{} ;
269270 config.clusterParams = clusterParams;
270271 config.nodeParams = nodeParams;
271272
0 commit comments