aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Controllers
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-08-05 22:18:14 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-08-05 22:18:14 +0300
commit03bc9bd370929884f98ee9488146646d44911efd (patch)
treeb4c694fa99ab2f351f4097ae0467a320cc5d9a59 /Software/Visual_Studio/Web/Tango.MachineService/Controllers
parent568ffe0a9c0141c4530d962f134b4c5960d6ff9b (diff)
downloadTango-03bc9bd370929884f98ee9488146646d44911efd.tar.gz
Tango-03bc9bd370929884f98ee9488146646d44911efd.zip
Improved PPC Publisher for Firmware version display and validation.
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers')
-rw-r--r--Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
index 10af2f725..22feb29c1 100644
--- a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
+++ b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs
@@ -788,10 +788,13 @@ namespace Tango.MachineService.Controllers
return new LatestVersionResponse()
{
Version = "0.0.0.0",
+ FirmwareVersion = "0.0.0.0"
};
}
- response.Version = versions.OrderByDescending(x => Version.Parse(x.Version)).FirstOrDefault().Version;
+ var latestTangoVersion = versions.OrderByDescending(x => Version.Parse(x.Version)).FirstOrDefault();
+ response.Version = latestTangoVersion.Version;
+ response.FirmwareVersion = latestTangoVersion.FirmwareVersion;
}
return response;