Skip to content

Commit

Permalink
Corrected driver to work properly under Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
gusmanb committed Feb 7, 2023
1 parent ab32e4f commit bba03c6
Show file tree
Hide file tree
Showing 10 changed files with 204 additions and 127 deletions.
1 change: 1 addition & 0 deletions Software/LogicAnalyzer/CLCapture/CLCapture.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<ApplicationIcon>window.ico</ApplicationIcon>
<Version>3.5.0.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions Software/LogicAnalyzer/CLCapture/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ async Task<int> Capture(CLCaptureOptions opts)
case CaptureError.HardwareError:
Console.WriteLine("Device reported error starting capture. Restart the device and try again.");
return -1;
case CaptureError.UnexpectedError:
Console.WriteLine("Unexpected error. Restart the device and try again.");
return -1;
}
}

Expand Down Expand Up @@ -223,6 +226,9 @@ async Task<int> Capture(CLCaptureOptions opts)
case CaptureError.HardwareError:
Console.WriteLine("Device reported error starting capture. Restart the device and try again.");
return -1;
case CaptureError.UnexpectedError:
Console.WriteLine("Unexpected error. Restart the device and try again.");
return -1;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>3.5.0.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions Software/LogicAnalyzer/LogicAnalyzer/LogicAnalyzer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationIcon>Assets\window.ico</ApplicationIcon>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<Version>3.5.0.1</Version>
</PropertyGroup>
<ItemGroup>
<None Remove=".gitignore" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_LastSelectedProfileId>C:\Users\geniw\source\repos\LogicAnalyzer\LogicAnalyzer\Properties\PublishProfiles\Windows-Arm64.pubxml</_LastSelectedProfileId>
<_LastSelectedProfileId>C:\Users\geniw\source\repos\LogicAnalyzer\LogicAnalyzer\Properties\PublishProfiles\Linux-Arm.pubxml</_LastSelectedProfileId>
</PropertyGroup>
</Project>
3 changes: 3 additions & 0 deletions Software/LogicAnalyzer/LogicAnalyzer/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,9 @@ private async Task ShowError(CaptureError error)
case CaptureError.HardwareError:
await ShowError("Error", "Device reported error starting capture. Restart the device and try again.");
return;
case CaptureError.UnexpectedError:
await ShowError("Error", "Unexpected error, restart the application and the device and try again.");
return;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>3.5.0.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>3.5.0.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
Loading

0 comments on commit bba03c6

Please sign in to comment.