Skip to content

Commit

Permalink
Fix calibration validation (offset > -100)
Browse files Browse the repository at this point in the history
  • Loading branch information
Am6er committed Sep 3, 2024
1 parent 148628d commit 6cf5fe7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions BecquerelMonitor/BecquerelMonitor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
<MinimumRequiredVersion>2022.07.08.7</MinimumRequiredVersion>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>index.html</WebPage>
<ApplicationRevision>3</ApplicationRevision>
<ApplicationVersion>2024.09.03.3</ApplicationVersion>
<ApplicationRevision>4</ApplicationRevision>
<ApplicationVersion>2024.09.03.4</ApplicationVersion>
<UseApplicationTrust>true</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
Expand Down
6 changes: 4 additions & 2 deletions BecquerelMonitor/DeviceConfigForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -896,8 +897,9 @@ void setNewCalibration(TextBox t, int order)
t.ForeColor = Color.Black;
this.SetActiveDeviceConfigDirty();
}
catch
catch (Exception ex)
{
Trace.WriteLine(ex.ToString());
t.ForeColor = Color.Red;
}
}
Expand Down Expand Up @@ -1947,7 +1949,7 @@ double fromStringtoDouble(string str)
System.Globalization.CultureInfo.InvariantCulture,
out result))
{
if (result > -100.0 && result < 100.0)
if (result > -200.0 && result < 200.0)
{
return result;
}
Expand Down
4 changes: 2 additions & 2 deletions BecquerelMonitor/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyVersion("2024.09.03.3")]
[assembly: AssemblyVersion("2024.09.03.4")]
[assembly: AssemblyProduct("BecquerelMonitor")]
[assembly: AssemblyCopyright("free")]
[assembly: AssemblyTrademark("none")]
[assembly: AssemblyConfiguration("")]
[assembly: Guid("40110b38-4882-47c1-ad94-a71e58dcb5f8")]
[assembly: AssemblyFileVersion("2024.09.03.3")]
[assembly: AssemblyFileVersion("2024.09.03.4")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyCompany("free")]
[assembly: CompilationRelaxations(8)]
Expand Down

0 comments on commit 6cf5fe7

Please sign in to comment.