diff options
-rw-r--r-- | FelLib/Fel.cs | 12 | ||||
-rw-r--r-- | Properties/AssemblyInfo.cs | 4 | ||||
-rw-r--r-- | 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 @@ <PublisherName>Alexey %27Cluster%27 Avdyukhin</PublisherName>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>index.html</WebPage>
- <ApplicationRevision>23</ApplicationRevision>
- <ApplicationVersion>2.0.21.23</ApplicationVersion>
+ <ApplicationRevision>30</ApplicationRevision>
+ <ApplicationVersion>2.0.21.30</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
<PublishWizardCompleted>true</PublishWizardCompleted>
|