aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Controllers
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-03-24 18:32:53 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-03-24 18:32:53 +0200
commit7c0bc53fb5af56dbadae7e7919e534d02c945ad7 (patch)
tree362b022366483867cc50bea0bfcdfc2014dbf7fd /Software/Visual_Studio/Web/Tango.MachineService/Controllers
parent912e8423fbf63a025dac977d5749e60d4c57df68 (diff)
parent97834b29a6f837601f0c85d08d41a30225242a71 (diff)
downloadTango-7c0bc53fb5af56dbadae7e7919e534d02c945ad7.tar.gz
Tango-7c0bc53fb5af56dbadae7e7919e534d02c945ad7.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers')
-rw-r--r--Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
index 71e540dbf..2049df665 100644
--- a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
+++ b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
@@ -344,6 +344,14 @@ namespace Tango.MachineService.Controllers
response.IsUpdateAvailable = true;
}
+ if (!String.IsNullOrWhiteSpace(request.FirmwareVersion))
+ {
+ if (Version.Parse(latest_machine_version.FirmwareVersion) > Version.Parse(request.FirmwareVersion))
+ {
+ response.IsUpdateAvailable = true;
+ }
+ }
+
response.Version = latest_machine_version.Version;
response.FirmwareVersion = latest_machine_version.FirmwareVersion;