Diag: send operate (O000) only if State has changed

This commit is contained in:
2024-03-12 14:47:13 +01:00
parent 58f50b0ea6
commit 70b488de66
2 changed files with 17 additions and 4 deletions

View File

@@ -52,7 +52,9 @@ namespace DeviceController {
W001,
W002,
W003,
W004
W004,
INITIAL_STATE
};
Q_ENUM_NS(State)
}
@@ -91,6 +93,7 @@ private:
int lastVoltage;
DeviceController::State lastState;
QSet<DeviceController::State> machineEventSet;
PersistentData* pData;