Diag: DEBUG EventSets
This commit is contained in:
parent
6eee0aba00
commit
b1a4569cd2
@ -420,8 +420,15 @@ void DeviceControllerDiag::sub_componentAssessment()
|
||||
// Reset events: present in previous but not current
|
||||
QSet<DCMachineEvent> resetEvents = this->previousMachineEventSet - this->machineEventSet;
|
||||
|
||||
// DEBUG EventSets:
|
||||
qCritical() << "sub_componentAssessment():";
|
||||
qCritical() << " newEvents: " << newEvents.size();
|
||||
qCritical() << " resetEvents: " << resetEvents.size();
|
||||
|
||||
|
||||
// Triggering Actions
|
||||
// Iterate through the results
|
||||
|
||||
for (const DCMachineEvent& event : newEvents) {
|
||||
private_sendDiagEvent(event, DeviceController::Action::SET); // New event detected
|
||||
}
|
||||
@ -462,6 +469,9 @@ void DeviceControllerDiag::private_setDiagEvent(DeviceController::State result)
|
||||
|
||||
DCMachineEvent newState = DCMachineEvent(result, QUuid::createUuid().toString(QUuid::WithoutBraces).mid(0, 8));
|
||||
|
||||
// DEBUG
|
||||
qCritical() << "----> setDiagEvent: " << newState.state << " with id: " << newState.eventId;
|
||||
|
||||
machineEventSet.insert(newState);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user