Skip to content

Commit

Permalink
Trying to add support for 8D0920932C.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmenounos committed Aug 22, 2024
1 parent fb2e25c commit 3e51c84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion Tester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,15 @@ public void GetSkc()
var ecuInfo = Kwp1281Wakeup();
if (ecuInfo.Text.Contains("4B0920") ||
ecuInfo.Text.Contains("4Z7920") ||
ecuInfo.Text.Contains("8D0920") ||
ecuInfo.Text.Contains("8Z0920"))
{
var family = ecuInfo.Text.StartsWith('4') ? "C5" : "A2";
var family = ecuInfo.Text[..2] switch
{
"8D" => "A4",
"8Z" => "A2",
_ => "C5"
};

Log.WriteLine($"Cluster is Audi {family}");

Expand Down
6 changes: 3 additions & 3 deletions kw1281test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>BitFab.KW1281Test</RootNamespace>
<LangVersion>latest</LangVersion>
<AssemblyVersion>0.99.1.0</AssemblyVersion>
<FileVersion>0.99.1.0</FileVersion>
<Version>0.99.1-beta</Version>
<AssemblyVersion>0.99.2.0</AssemblyVersion>
<FileVersion>0.99.2.0</FileVersion>
<Version>0.99.2-alpha</Version>
<Copyright>Copyright © 2024 Greg Menounos</Copyright>
<DebugType>embedded</DebugType>
<DebugSymbols>true</DebugSymbols>
Expand Down

0 comments on commit 3e51c84

Please sign in to comment.