diff --git a/src/ATBAPP/DeviceControllerDiag.cpp b/src/ATBAPP/DeviceControllerDiag.cpp index 91124d8..376d2e6 100644 --- a/src/ATBAPP/DeviceControllerDiag.cpp +++ b/src/ATBAPP/DeviceControllerDiag.cpp @@ -142,8 +142,8 @@ void DeviceControllerDiag::private_startDiag() void DeviceControllerDiag::sys_superviseSystem() { // this function proofs if vending is possible depending of doors state - struct T_dynamicCondition dynMaCond; - struct T_moduleCondition modCond; + struct T_dynamicCondition dynMaCond = {}; + struct T_moduleCondition modCond = {}; qCritical() << " sys_superviseSystem()"; @@ -202,13 +202,13 @@ void DeviceControllerDiag::sub_componentAssessment() { bool flag_sendOperate = true; - struct T_moduleCondition modCond; + struct T_moduleCondition modCond = {}; hw->sys_getDeviceConditions(&modCond); - struct T_dynamicCondition dynMaCond; + struct T_dynamicCondition dynMaCond = {}; hw->sys_getDynMachineConditions(&dynMaCond); - struct T_devices devPara; + struct T_devices devPara = {}; hw->sys_restoreDeviceParameter(&devPara); // store some interesting results: @@ -606,7 +606,7 @@ void DeviceControllerDiag::private_sendDiagEvent(DeviceController::State result) "DC", eventClass, eventName, - 1, + 1, // eventState parameter, "" // second level info );