diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-05-21 02:04:37 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-05-21 02:04:37 +0300 |
| commit | 5d3c7f9404508a85354202c0b8c0fb4c59302a33 (patch) | |
| tree | c73391a5520df6fd09b0c463852b0d4aeb3ff04c /Software/Visual_Studio/Tango.Integration | |
| parent | 0969c92ed9d0bd644ce5f82496db37b131ebeedc (diff) | |
| download | Tango-5d3c7f9404508a85354202c0b8c0fb4c59302a33.tar.gz Tango-5d3c7f9404508a85354202c0b8c0fb4c59302a33.zip | |
Attempt to fix getting ready state on job resume.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index a2fc447af..93cb7bbb8 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -3277,17 +3277,17 @@ namespace Tango.Integration.Operation { if (!completed) { - if (resumePreProgress > 0) + if (resumePreProgress > 0 && response.Message.Status.Progress > 0) { - response.Message.Status.Progress += resumePreProgress;//LogManager.Log($" MACHINE OPERATOR Added Progress = {response.Message.Status.Progress}"); + response.Message.Status.Progress += resumePreProgress; } handler.RaiseStatusReceived(response.Message.Status); _last_job_status = handler.Status; if (response.Message.Status.Progress > 0) - { if (oldKeepAlive != UseKeepAlive) + { { UseKeepAlive = oldKeepAlive; } @@ -3306,7 +3306,14 @@ namespace Tango.Integration.Operation if (JobHandlingMode == JobHandlerModes.SettingUp) { - if (response.Message.Status.Progress > processParameters.DryerBufferLengthMeters) + var printingStartPosition = processParameters.DryerBufferLengthMeters; + + if (config != null && config.ResumeConfig != null && config.ResumeConfig.GlobalStartPosition > 0) + { + printingStartPosition = config.ResumeConfig.GlobalStartPosition; + } + + if (response.Message.Status.Progress > printingStartPosition) { if (!completed) { |
