diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-09-03 22:47:14 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-09-03 22:47:14 +0300 |
| commit | afaa83f7b7a9fe78e34d069a43b0f2d61cc38b69 (patch) | |
| tree | daa087c9ed287ec83df167fcbb92dd973f38904b /Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | |
| parent | 507557c575f9e0cd53a288415d8dd92f7a001b36 (diff) | |
| download | Tango-afaa83f7b7a9fe78e34d069a43b0f2d61cc38b69.tar.gz Tango-afaa83f7b7a9fe78e34d069a43b0f2d61cc38b69.zip | |
Fixed rounding of liquid volumes CMYK and numeric controls.
Better support for TS-1800 waste replace process.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index d8a5ef6b8..1b229831f 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -1418,8 +1418,11 @@ namespace Tango.Integration.Operation protected virtual void OnWasteReplacementRequired(string token, WasteReplaceRequest wasteReplaceRequest) { - _lastWasteReplaceRequestToken = token; - WasteReplacementRequired?.Invoke(this, new EventArgs()); + if (_lastWasteReplaceRequestToken == null) + { + _lastWasteReplaceRequestToken = token; + WasteReplacementRequired?.Invoke(this, new EventArgs()); + } } #endregion @@ -4684,6 +4687,7 @@ namespace Tango.Integration.Operation if (_lastWasteReplaceRequestToken != null) { await SendResponse<WasteReplaceResponse>(new WasteReplaceResponse() { Approved = approved }, _lastWasteReplaceRequestToken); + _lastWasteReplaceRequestToken = null; } } |
