diff --git a/source/Meadow.Core/Update/UpdateService.cs b/source/Meadow.Core/Update/UpdateService.cs index 9e1efbf8a..cf915dd09 100644 --- a/source/Meadow.Core/Update/UpdateService.cs +++ b/source/Meadow.Core/Update/UpdateService.cs @@ -431,7 +431,15 @@ public void RetrieveUpdate(UpdateInfo updateInfo) private async Task DownloadProc(UpdateMessage message) { + Resolver.Log.Trace($"Device OS Version: {Resolver.Device.PlatformOS.OSVersion}, Update OS Version: {message.OsVersion}"); + var destination = message.MpakDownloadUrl; + + if (!string.IsNullOrEmpty(message.OsVersion) + && Resolver.Device.PlatformOS.OSVersion != message.OsVersion) + { + destination = message.MpakWithOsDownloadUrl; + } if (!destination.StartsWith("http")) {