From d10213af83e08a447675ebfb4b9dce8db95f73ff Mon Sep 17 00:00:00 2001 From: olegel Date: Thu, 23 May 2019 21:38:43 +0300 Subject: [PATCH] - show id as hex in log list --- CanLogger/VolvoCanLogger/Messages.cs | 6 +++--- Release/VolvoCanLogger.exe | Bin 54272 -> 54272 bytes Release/VolvoCanLogger.pdb | Bin 120320 -> 120320 bytes Samples/error.logdata | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) 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 157cc9122e3651d034407f9404496cde9942ae17..809a1b911dffae09e1768328d586d86d8dc6f7ae 100644 GIT binary patch delta 428 zcmZoz!Q8Ndc|r%%m!}iE482KA7CdSkJg; zG9#0)kU#&vVXi9Mv9lRw;)5oB2{tbd^Mmci&Q0w_JRc@ne)}b0#Ze{ zCr?f3P*W6wSy%*O<{txDDyH!UNNKIBo6Eq!qAOQqJlQ$*qhyT`1A}sCFvF5C1_lA3 z&y?LmJzaqGmd(CtiNQj$)eHs;RtYherSa delta 431 zcmZoz!Q8Ndc|r%%^+yxC?B1B1-ukEe7dM>482-kIFUSkJg) zG9#0)5KjUF10w?i!)^u!wm**<7y?*;%Ct5IFztw8+%TCl-j(sdWdC?I#sizn;;%C@ zUfS%J*vcsUfS;j2;}8P_7n796PY_k~ZSu3EVn(jXQORzMVUrgo3$s-SFccJ3Ox~3o zDH;Z3vT5uGTA_ANle=gFNM_q)jTA3scR_}NMXKV=`D#E@7O6@U?F0)*GUuy<1*D3u zPoA36p(ZN?v#hbcs zHZR$;fmi4Hqh~QdeGE)MECURq3}7H;oMK=I3U&z&%S|y#P5SBG74`LxThO=0%?+nG t7=_ln1gVFBV<5J|L`5-RKyN%9JJEn;GvAqCtV}m7Hw#{R&p6S59RS3Ug#7>j diff --git a/Release/VolvoCanLogger.pdb b/Release/VolvoCanLogger.pdb index 49bb3f9bef713510dff59979454a7905caf72b37..ee9965309ceb482a84a9f972b5c5d6eec460fdf7 100644 GIT binary patch delta 140 zcmZoz!``rleFF=Z#FwYfVi*}17*@v45!{?M)unxb$mZTPp%$BExO5am9P?jFdTo&Y z@lVb$)k9{|hDpLcrW+lXFmBS}P+?thd5_H0&Ab7hnOW3BB0@H^gv>j|7`J_~9HY1t Zt2KilgW>l57L2Z)IPKUjbBOVYFaUj8c<+dUr*A{o@w&t#PvqmyUvn)Wa>i&TYTJ zta@y%;MJBR=l6