diff --git a/CHANGELOG.md b/CHANGELOG.md index 327e31d..22411bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -178,6 +178,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Better VC-4 support for IcdConsole - JSON refactoring for simpler deserialization +## [8.9.1] - 2020-05-27 +### Changed + - Changed ProcessorUtils to use CrestronEnvironment to retrive serial number - this fixes issues with new serial numbers that aren't deciaml TSIDs + ## [8.9.0] - 2020-04-30 ### Changed - ProgramUtils and ProcessorUtils return dates instead of strings for date properties diff --git a/ICD.Common.Utils/ProcessorUtils.SimplSharp.cs b/ICD.Common.Utils/ProcessorUtils.SimplSharp.cs index cf074e9..73391f0 100644 --- a/ICD.Common.Utils/ProcessorUtils.SimplSharp.cs +++ b/ICD.Common.Utils/ProcessorUtils.SimplSharp.cs @@ -1,7 +1,8 @@ -using System.Globalization; +#if SIMPLSHARP +using System.Globalization; +using Crestron.SimplSharp; using ICD.Common.Utils.Services; using ICD.Common.Utils.Services.Logging; -#if SIMPLSHARP using System; using System.Text.RegularExpressions; using ICD.Common.Properties; @@ -125,19 +126,7 @@ namespace ICD.Common.Utils { get { - Regex regex = new Regex(VER_REGEX); - Match match = regex.Match(VersionResult); - - if (!match.Success) - { - ServiceProvider.TryGetService() - .AddEntry(eSeverity.Warning, "Unable to get serial number from \"{0}\"", VersionResult); - - return string.Empty; - } - - int decValue = int.Parse(match.Groups["serial"].Value, System.Globalization.NumberStyles.HexNumber); - return decValue.ToString(); + return CrestronEnvironment.SystemInfo.SerialNumber; } }