From 690b60216f26582f39823eb8ca583338be62deee Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Tue, 10 Oct 2017 18:16:11 +0300 Subject: More tiny fixes. Release 2.21b. --- FelLib/Fel.cs | 12 ++++++++++-- Properties/AssemblyInfo.cs | 4 ++-- hakchi_gui.csproj | 4 ++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/FelLib/Fel.cs b/FelLib/Fel.cs index 7e3a8bdd..d72b06b0 100644 --- a/FelLib/Fel.cs +++ b/FelLib/Fel.cs @@ -149,9 +149,17 @@ namespace com.clusterrr.FelLib epWriter = device.OpenEndpointWriter((WriteEndpointID)outEndp); Debug.WriteLine("Trying to verify device"); - if (VerifyDevice().Board != 0x00166700) + try + { + if (VerifyDevice().Board != 0x00166700) + { + Debug.WriteLine("Invalid board ID: " + VerifyDevice().Board); + return false; + } + } + catch (Exception ex) { - Debug.WriteLine("Invalid board ID: " + VerifyDevice().Board); + Debug.WriteLine("Error: " + ex.Message + ex.StackTrace); return false; } diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index da39f212..55f2164a 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -33,6 +33,6 @@ using System.Resources; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.0.21.23")] -[assembly: AssemblyFileVersion("2.0.21.23")] +[assembly: AssemblyVersion("2.0.21.30")] +[assembly: AssemblyFileVersion("2.0.21.30")] [assembly: NeutralResourcesLanguageAttribute("en-US")] diff --git a/hakchi_gui.csproj b/hakchi_gui.csproj index 9a91b011..d24979d5 100644 --- a/hakchi_gui.csproj +++ b/hakchi_gui.csproj @@ -31,8 +31,8 @@ Alexey %27Cluster%27 Avdyukhin true index.html - 23 - 2.0.21.23 + 30 + 2.0.21.30 false true true -- cgit v1.2.3