diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-08-05 22:18:14 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-08-05 22:18:14 +0300 |
| commit | 03bc9bd370929884f98ee9488146646d44911efd (patch) | |
| tree | b4c694fa99ab2f351f4097ae0467a320cc5d9a59 /Software/Visual_Studio/Web/Tango.MachineService/Controllers | |
| parent | 568ffe0a9c0141c4530d962f134b4c5960d6ff9b (diff) | |
| download | Tango-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.cs | 5 |
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; |
