Skip to content

Commit

Permalink
v6.1.1 - Fix DialPress adding errors to the log
Browse files Browse the repository at this point in the history
v6.1.1 - Fixed DialPress events sending errors to the log
- Fixes #69
  • Loading branch information
BarRaider committed Apr 26, 2023
1 parent f786a7a commit 9153b4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions barraider-sdtools/Communication/SDEvents/BaseEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public abstract class BaseEvent
{ EventTypes.DialDown, typeof(DialDownEvent) },
{ EventTypes.DialUp, typeof(DialUpEvent) },
{ EventTypes.TouchpadPress, typeof(TouchpadPressEvent) },
{ EventTypes.DialPress, typeof(DialDownEvent) }, // Deprecated: Should be removed when event stops getting sent by SD
};

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion barraider-sdtools/Communication/StreamDeckConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ private async Task<WebSocketCloseStatus> ReceiveAsync()
BaseEvent evt = BaseEvent.Parse(strBuffer);
if (evt == null)
{
Logger.Instance.LogMessage(TracingLevel.FATAL, $"{this.GetType()} Unknown event received from Stream Deck: {strBuffer}");
Logger.Instance.LogMessage(TracingLevel.WARN, $"{this.GetType()} Unknown event received from Stream Deck: {strBuffer}");
continue;
}

Expand Down
10 changes: 6 additions & 4 deletions barraider-sdtools/barraider-sdtools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ Feel free to contact me for more information: https://barraider.com</Description
<PackageTags>StreamDeck Elgato Library Plugin Stream Deck Toolkit</PackageTags>
<PackageId>StreamDeck-Tools</PackageId>
<PackageIconUrl></PackageIconUrl>
<AssemblyVersion>6.1.0.0</AssemblyVersion>
<FileVersion>6.0.0.0</FileVersion>
<Version>6.1.0</Version>
<PackageReleaseNotes>6.1.0 - Support for new DialDown and DialUp events. Removed support for deprecated DialPress event</PackageReleaseNotes>
<AssemblyVersion>6.1.1.0</AssemblyVersion>
<FileVersion>6.1.1.0</FileVersion>
<Version>6.1.1</Version>
<PackageReleaseNotes>6.1.1 - Removed error being logged for DialPress events
- Support for new DialDown and DialUp events.
Removed support for deprecated DialPress event</PackageReleaseNotes>
<RootNamespace>BarRaider.SdTools</RootNamespace>
<AssemblyName>StreamDeckTools</AssemblyName>
<PackageIcon>BRLogo_460.png</PackageIcon>
Expand Down

0 comments on commit 9153b4f

Please sign in to comment.