aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-05-02 10:52:59 +0300
committerShlomo Hecht <shlomo@twine-s.com>2019-05-02 10:52:59 +0300
commit9922d0232fc0c6e3f28a53d39c356f24abe90e9c (patch)
tree6ee0c904bd1d002e97519aa69cf43b9545ec5bec /Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
parent19cb69d95d52a2ca5a193c63b4ddd3a898a8305e (diff)
parent702be0f8634c3012a1a5e833eeadd37bc7d06181 (diff)
downloadTango-9922d0232fc0c6e3f28a53d39c356f24abe90e9c.tar.gz
Tango-9922d0232fc0c6e3f28a53d39c356f24abe90e9c.zip
merge TPF
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs')
-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."));
}
}