From f57bc79feba124eb9dde5c907f968c9bf2b2fdcf Mon Sep 17 00:00:00 2001 From: Peter Hall <33176108+IamPete1@users.noreply.github.com> Date: Sun, 29 Oct 2023 10:49:56 +0000 Subject: [PATCH] ExtLibs: Utilities: BinaryLog: fix FW version detecton used for mode names --- ExtLibs/Utilities/BinaryLog.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ExtLibs/Utilities/BinaryLog.cs b/ExtLibs/Utilities/BinaryLog.cs index d3928ad26c..4e96254420 100644 --- a/ExtLibs/Utilities/BinaryLog.cs +++ b/ExtLibs/Utilities/BinaryLog.cs @@ -157,6 +157,8 @@ public string ReadMessage(Stream br, long length) { if (a.IsNumber()) return (((IConvertible)a).ToString(CultureInfo.InvariantCulture)); + else if (a is System.Byte[]) + return System.Text.Encoding.ASCII.GetString(a as byte[]).Trim('\0'); else return a?.ToString(); })) + "\r\n";