Skip to content

Commit

Permalink
- show id as hex in log list
Browse files Browse the repository at this point in the history
  • Loading branch information
olegel committed May 23, 2019
1 parent b4b01cc commit d10213a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CanLogger/VolvoCanLogger/Messages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}";
}
}

Expand Down
Binary file modified Release/VolvoCanLogger.exe
Binary file not shown.
Binary file modified Release/VolvoCanLogger.pdb
Binary file not shown.
1 change: 1 addition & 0 deletions Samples/error.logdata
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
T0240162A8E0100040070019004337
T0240162A8E010004007001900
T0240162A80030004007001900435A0000000000

0 comments on commit d10213a

Please sign in to comment.