aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-05-10 17:54:43 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-05-10 17:54:43 +0300
commit278d5d5c43f3e19169af5d996448d3a400f417e1 (patch)
tree53077173ee5d2487a5b3b7b6545d1c213d80604e /Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
parent973ea814a935192cd19d94780956b6aee21ca746 (diff)
downloadTango-278d5d5c43f3e19169af5d996448d3a400f417e1.tar.gz
Tango-278d5d5c43f3e19169af5d996448d3a400f417e1.zip
Fixed issue with PPC firmware update report on demo machines.
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs')
-rw-r--r--Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
index 2049df665..28acb3647 100644
--- a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
+++ b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
@@ -344,11 +344,14 @@ namespace Tango.MachineService.Controllers
response.IsUpdateAvailable = true;
}
- if (!String.IsNullOrWhiteSpace(request.FirmwareVersion))
+ if (!machine.IsDemo && machine.SetupFirmware)
{
- if (Version.Parse(latest_machine_version.FirmwareVersion) > Version.Parse(request.FirmwareVersion))
+ if (!String.IsNullOrWhiteSpace(request.FirmwareVersion))
{
- response.IsUpdateAvailable = true;
+ if (Version.Parse(latest_machine_version.FirmwareVersion) > Version.Parse(request.FirmwareVersion))
+ {
+ response.IsUpdateAvailable = true;
+ }
}
}