aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-04-30 17:55:32 +0300
committerShlomo Hecht <shlomo@twine-s.com>2019-04-30 17:55:32 +0300
commit1c5958f18ac2ee6122baa849b60f4e9ee6b27828 (patch)
tree4ca050498d68f24f598cac4a51a59ce4a5f0f60a /Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate
parent08316b86da18cce886b9269daec1f04cbe377fc3 (diff)
parentf7a90a31ca1536b2ff798f2a182194ffd221d6db (diff)
downloadTango-1c5958f18ac2ee6122baa849b60f4e9ee6b27828.tar.gz
Tango-1c5958f18ac2ee6122baa849b60f4e9ee6b27828.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
index b64b624fe..3061b9506 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
@@ -119,9 +119,9 @@ namespace Tango.PPC.Common.MachineUpdate
{
throw LogManager.Log(new InvalidOperationException("Could not perform an update while the machine is not connected."));
}
- if (op.Status != MachineStatuses.ReadyToDye)
+ if (op.IsPrinting)
{
- throw LogManager.Log(new InvalidOperationException($"Could not perform an update while the machine is in a {op.Status} status."));
+ throw LogManager.Log(new InvalidOperationException($"Could not perform an update while the machine is in {op.Status} status."));
}
}