diff --git a/.github/workflows/dotnet-prerelease.yml b/.github/workflows/dotnet-prerelease.yml index 1d3f3ea..231591f 100644 --- a/.github/workflows/dotnet-prerelease.yml +++ b/.github/workflows/dotnet-prerelease.yml @@ -2,11 +2,12 @@ name: .NET Prerelease on: push: - branches: [ "prerelease" ] + tags: + - '[0-9]+\.[0-9]+\.[0-9]+\-beta' env: VERSION_MAJOR: 0 - VERSION_MINOR: 4 + VERSION_MINOR: 5 VERSION_SUFFIX: "-beta" jobs: diff --git a/.github/workflows/dotnet-release.yml b/.github/workflows/dotnet-release.yml index fd3f748..feb0a7e 100644 --- a/.github/workflows/dotnet-release.yml +++ b/.github/workflows/dotnet-release.yml @@ -2,11 +2,12 @@ name: .NET Release on: push: - branches: [ "release" ] + tags: + - '[0-9]+\.[0-9]+\.[0-9]+' env: VERSION_MAJOR: 0 - VERSION_MINOR: 4 + VERSION_MINOR: 5 VERSION_SUFFIX: "" jobs: diff --git a/Core/SmartIOT.Connector.Core/Connector/AggregatingConnectorEventQueue.cs b/Core/SmartIOT.Connector.Core/Connector/AggregatingConnectorEventQueue.cs index 31b6cc8..c7b0237 100644 --- a/Core/SmartIOT.Connector.Core/Connector/AggregatingConnectorEventQueue.cs +++ b/Core/SmartIOT.Connector.Core/Connector/AggregatingConnectorEventQueue.cs @@ -1,4 +1,5 @@ -using SmartIOT.Connector.Core.Events; +using ProtoBuf; +using SmartIOT.Connector.Core.Events; namespace SmartIOT.Connector.Core.Connector; @@ -33,7 +34,7 @@ public class AggregatingConnectorEventQueue : AggregatingQueue 0 && e2.Data.Length > 0) { int startOffset = Math.Min(e1.StartOffset, e2.StartOffset); int endOffset = Math.Max(e1.StartOffset + e1.Data.Length, e2.StartOffset + e2.Data.Length); @@ -67,7 +68,7 @@ public class AggregatingConnectorEventQueue : AggregatingQueue 0 && e2.Data.Length > 0) { int startOffset = Math.Min(e1.StartOffset, e2.StartOffset); int endOffset = Math.Max(e1.StartOffset + e1.Data.Length, e2.StartOffset + e2.Data.Length); diff --git a/Core/SmartIOT.Connector.Core/Events/TagScheduleEvent.cs b/Core/SmartIOT.Connector.Core/Events/TagScheduleEvent.cs index 5d7e177..5b2bca8 100644 --- a/Core/SmartIOT.Connector.Core/Events/TagScheduleEvent.cs +++ b/Core/SmartIOT.Connector.Core/Events/TagScheduleEvent.cs @@ -39,7 +39,7 @@ public static TagScheduleEvent BuildTagData(Device device, Tag tag, int startOff public static TagScheduleEvent BuildEmptyTagData(Device device, Tag tag, bool isErrorNumberChanged) { - return new TagScheduleEvent(device, tag, -1, Array.Empty(), isErrorNumberChanged); + return new TagScheduleEvent(device, tag, tag.ByteOffset, Array.Empty(), isErrorNumberChanged); } public static TagScheduleEvent BuildTagStatus(Device device, Tag tag, int errorNumber, string description, bool isErrorNumberChanged)