From 44f8b38cd41388e77ea237ce966694695133b69b Mon Sep 17 00:00:00 2001 From: TTLC198 <41226242+TTLC198@users.noreply.github.com> Date: Sat, 11 Nov 2023 19:54:56 +0300 Subject: [PATCH] The ending character in the message for older firmware versions of devices with software version < 2.0.1 has been removed. --- HSMonitor/Services/SerialMonitorService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/HSMonitor/Services/SerialMonitorService.cs b/HSMonitor/Services/SerialMonitorService.cs index bcec82c..1e5210d 100644 --- a/HSMonitor/Services/SerialMonitorService.cs +++ b/HSMonitor/Services/SerialMonitorService.cs @@ -3,6 +3,7 @@ using System.Text.Json; using HSMonitor.Utils.Logger; using HSMonitor.Utils.Serial; +using HSMonitor.Utils.Usb.Serial; namespace HSMonitor.Services; @@ -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