Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
c84050091b
|
|||
9be2841187
|
@@ -1167,7 +1167,7 @@ void ATBDeviceControllerPlugin::private_setupDynTemplatData_FINE_PAYMENT(struct
|
|||||||
memcpy((char*)dynTicketData->currentDate, ba_currentDate.data(), std::min(ba_currentDate.size(),8));
|
memcpy((char*)dynTicketData->currentDate, ba_currentDate.data(), std::min(ba_currentDate.size(),8));
|
||||||
|
|
||||||
QByteArray ba_ticketId = codec->fromUnicode(ticket->getPrintingData()["ticketId"].toString());
|
QByteArray ba_ticketId = codec->fromUnicode(ticket->getPrintingData()["ticketId"].toString());
|
||||||
memcpy((char*)dynTicketData->dynDat7, ba_amount.data(), std::min(ba_ticketId.size(),8));
|
memcpy((char*)dynTicketData->dynDat7, ba_ticketId.data(), std::min(ba_ticketId.size(),8));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -142,8 +142,8 @@ void DeviceControllerDiag::private_startDiag()
|
|||||||
void DeviceControllerDiag::sys_superviseSystem()
|
void DeviceControllerDiag::sys_superviseSystem()
|
||||||
{ // this function proofs if vending is possible depending of doors state
|
{ // this function proofs if vending is possible depending of doors state
|
||||||
|
|
||||||
struct T_dynamicCondition dynMaCond;
|
struct T_dynamicCondition dynMaCond = {};
|
||||||
struct T_moduleCondition modCond;
|
struct T_moduleCondition modCond = {};
|
||||||
|
|
||||||
|
|
||||||
qCritical() << " sys_superviseSystem()";
|
qCritical() << " sys_superviseSystem()";
|
||||||
@@ -202,13 +202,13 @@ void DeviceControllerDiag::sub_componentAssessment()
|
|||||||
{
|
{
|
||||||
bool flag_sendOperate = true;
|
bool flag_sendOperate = true;
|
||||||
|
|
||||||
struct T_moduleCondition modCond;
|
struct T_moduleCondition modCond = {};
|
||||||
hw->sys_getDeviceConditions(&modCond);
|
hw->sys_getDeviceConditions(&modCond);
|
||||||
|
|
||||||
struct T_dynamicCondition dynMaCond;
|
struct T_dynamicCondition dynMaCond = {};
|
||||||
hw->sys_getDynMachineConditions(&dynMaCond);
|
hw->sys_getDynMachineConditions(&dynMaCond);
|
||||||
|
|
||||||
struct T_devices devPara;
|
struct T_devices devPara = {};
|
||||||
hw->sys_restoreDeviceParameter(&devPara);
|
hw->sys_restoreDeviceParameter(&devPara);
|
||||||
|
|
||||||
// store some interesting results:
|
// store some interesting results:
|
||||||
@@ -606,7 +606,7 @@ void DeviceControllerDiag::private_sendDiagEvent(DeviceController::State result)
|
|||||||
"DC",
|
"DC",
|
||||||
eventClass,
|
eventClass,
|
||||||
eventName,
|
eventName,
|
||||||
1,
|
1, // eventState
|
||||||
parameter,
|
parameter,
|
||||||
"" // second level info
|
"" // second level info
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user