Skip to content

Commit

Permalink
The ending character in the message for older firmware versions of de…
Browse files Browse the repository at this point in the history
…vices with software version < 2.0.1 has been removed.
  • Loading branch information
TTLC198 committed Nov 11, 2023
1 parent 88bf3ee commit 44f8b38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions HSMonitor/Services/SerialMonitorService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Text.Json;
using HSMonitor.Utils.Logger;
using HSMonitor.Utils.Serial;
using HSMonitor.Utils.Usb.Serial;

namespace HSMonitor.Services;

Expand Down Expand Up @@ -50,8 +51,6 @@ private void SendInformationToMonitor(object? sender, EventArgs args)
var jsonData = JsonSerializer
.Serialize(message)
.Select(s => (byte) s);
if (!_settingsService.Settings.IsDeviceBackwardCompatibilityEnabled)
jsonData = jsonData.Append((byte)'\0');
if (_serial.CheckAccess())
{
try
Expand Down

0 comments on commit 44f8b38

Please sign in to comment.