diff --git a/CanLogger/VolvoCanLogger/Messages.cs b/CanLogger/VolvoCanLogger/Messages.cs index aa634e9..2e61d86 100644 --- a/CanLogger/VolvoCanLogger/Messages.cs +++ b/CanLogger/VolvoCanLogger/Messages.cs @@ -20,7 +20,7 @@ public CanMessage() public string Dump() { - return string.Format("{0}. {1} {2}", Time, Id, Helpers.DataMaskAsString(Data)); + return string.Format("{0}. {1:X} {2}", Time, Id, Helpers.DataMaskAsString(Data)); } public string DisplayText @@ -47,9 +47,9 @@ public class ReceivedMessage public void GenerateLogText() { if (CanMessage != null) - LogText = string.Format("{0}. {1}", RawId, CanMessage.Dump()); + LogText = $"{RawId}. {CanMessage.Dump()}"; else - LogText = string.Format("{0}. {1}", RawId, RawText); + LogText = $"{RawId}. {RawText}"; } } diff --git a/Release/VolvoCanLogger.exe b/Release/VolvoCanLogger.exe index 157cc91..809a1b9 100644 Binary files a/Release/VolvoCanLogger.exe and b/Release/VolvoCanLogger.exe differ diff --git a/Release/VolvoCanLogger.pdb b/Release/VolvoCanLogger.pdb index 49bb3f9..ee99653 100644 Binary files a/Release/VolvoCanLogger.pdb and b/Release/VolvoCanLogger.pdb differ diff --git a/Samples/error.logdata b/Samples/error.logdata index e2c9350..e84169c 100644 --- a/Samples/error.logdata +++ b/Samples/error.logdata @@ -1,2 +1,3 @@ T0240162A8E0100040070019004337 +T0240162A8E010004007001900 T0240162A80030004007001900435A0000000000