Skip to content

Commit

Permalink
Merge pull request #47 from marktsoper/main
Browse files Browse the repository at this point in the history
Allow Raspberry Pi 2 Zero
  • Loading branch information
jefflill authored Oct 24, 2023
2 parents e8dfcb0 + 8219ff5 commit 75383f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions RaspberryDebugger/DebugHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -542,12 +542,13 @@ public static async Task<Connection> InitializeConnectionAsync(ConnectionInfo co
// .NET Core only supports Raspberry models 3 and 4.

if (!connection.PiStatus.RaspberryModel.StartsWith("Raspberry Pi 3 Model") &&
!connection.PiStatus.RaspberryModel.StartsWith("Raspberry Pi 4 Model"))
!connection.PiStatus.RaspberryModel.StartsWith("Raspberry Pi 4 Model") &&
!connection.PiStatus.RaspberryModel.StartsWith("Raspberry Pi Zero 2"))
{
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();

MessageBoxEx.Show(
$"Your [{connection.PiStatus.RaspberryModel}] is not supported. .NET Core requires a Raspberry Model 3 or 4.",
$"Your [{connection.PiStatus.RaspberryModel}] is not supported. .NET Core requires a Raspberry Model 3, 4 or Pi Zero 2.",
$"Raspberry Not Supported",
MessageBoxButtons.OK,
MessageBoxIcon.Error);
Expand Down

0 comments on commit 75383f0

Please sign in to comment.