Skip to content

Commit

Permalink
Merge pull request #102 from mcrossley/master
Browse files Browse the repository at this point in the history
v3.10.1
  • Loading branch information
mcrossley authored Feb 26, 2021
2 parents 76375b8 + a7bc57e commit a89549f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
6 changes: 3 additions & 3 deletions CumulusMX/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Cumulus MX")]
[assembly: AssemblyDescription("Build 3115")]
[assembly: AssemblyDescription("Build 3116")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Cumulus MX")]
Expand All @@ -32,5 +32,5 @@
// 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("3.10.0.3115")]
[assembly: AssemblyFileVersion("3.10.0.3115")]
[assembly: AssemblyVersion("3.10.1.3116")]
[assembly: AssemblyFileVersion("3.10.1.3116")]
10 changes: 5 additions & 5 deletions CumulusMX/WeatherStation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2608,7 +2608,7 @@ private string APRStemp(double temp)
// and return three digits
int num;

if (cumulus.Units.Rain == 0)
if (cumulus.Units.Temp == 0)
{
num = Convert.ToInt32(((temp * 1.8) + 32));
}
Expand Down Expand Up @@ -5532,7 +5532,7 @@ protected int BCDchartoint(int c)
/// <returns>Temp in configured units</returns>
public double ConvertTempCToUser(double value)
{
if (cumulus.Units.Rain == 1)
if (cumulus.Units.Temp == 1)
{
return MeteoLib.CToF(value);
}
Expand All @@ -5550,7 +5550,7 @@ public double ConvertTempCToUser(double value)
/// <returns>Temp in configured units</returns>
public double ConvertTempFToUser(double value)
{
if (cumulus.Units.Rain == 0)
if (cumulus.Units.Temp == 0)
{
return MeteoLib.FtoC(value);
}
Expand All @@ -5568,7 +5568,7 @@ public double ConvertTempFToUser(double value)
/// <returns>Temp in C</returns>
public double ConvertUserTempToC(double value)
{
if (cumulus.Units.Rain == 1)
if (cumulus.Units.Temp == 1)
{
return MeteoLib.FtoC(value);
}
Expand All @@ -5586,7 +5586,7 @@ public double ConvertUserTempToC(double value)
/// <returns>Temp in F</returns>
public double ConvertUserTempToF(double value)
{
if (cumulus.Units.Rain == 1)
if (cumulus.Units.Temp == 1)
{
return value;
}
Expand Down
6 changes: 6 additions & 0 deletions Updates.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
3.10.1 - b3116
——————————————
- Fix: Bug in temperature conversions introduced in v3.10.0



3.10.0 - b3115
——————————————
- Fix: Catch error creating System Uptime counter on Windows
Expand Down

0 comments on commit a89549f

Please sign in to comment.