Skip to content

Commit

Permalink
Merge pull request #149 from mcrossley/master
Browse files Browse the repository at this point in the history
v3.18.0 b3190
  • Loading branch information
mcrossley authored Jun 15, 2022
2 parents 70b794a + 68a4ce8 commit 6601996
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 6 deletions.
30 changes: 30 additions & 0 deletions CumulusMX/Cumulus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8268,6 +8268,21 @@ public void DoFTPLogin()
{
using (SftpClient conn = new SftpClient(connectionInfo))
{
// If the ECDSA ciphers are not available - yes I'm talking about you Mono! - remove them from the list to be tried
try
{
using (var ecdsa = new System.Security.Cryptography.ECDsaCng())
#pragma warning disable CS0642 // Possible mistaken empty statement
;
#pragma warning restore CS0642 // Possible mistaken empty statement
}
catch (NotImplementedException)
{
var algsToRemove = connectionInfo.HostKeyAlgorithms.Keys.Where(algName => algName.StartsWith("ecdsa")).ToArray();
foreach (var algName in algsToRemove)
connectionInfo.HostKeyAlgorithms.Remove(algName);
}

try
{
LogFtpDebugMessage($"SFTP[Int]: CumulusMX Connecting to {FtpOptions.Hostname} on port {FtpOptions.Port}");
Expand Down Expand Up @@ -9696,6 +9711,21 @@ private void RealtimeSSHLogin()
return;
}

// If the ECDSA ciphers are not available - yes I'm talking about you Mono! - remove them from the list to be tried
try
{
using (var ecdsa = new System.Security.Cryptography.ECDsaCng())
#pragma warning disable CS0642 // Possible mistaken empty statement
;
#pragma warning restore CS0642 // Possible mistaken empty statement
}
catch (NotImplementedException)
{
var algsToRemove = connectionInfo.HostKeyAlgorithms.Keys.Where(algName => algName.StartsWith("ecdsa")).ToArray();
foreach (var algName in algsToRemove)
connectionInfo.HostKeyAlgorithms.Remove(algName);
}

RealtimeSSH = new SftpClient(connectionInfo);

//if (RealtimeSSH != null) RealtimeSSH.Dispose();
Expand Down
4 changes: 2 additions & 2 deletions CumulusMX/GW1000Station.cs
Original file line number Diff line number Diff line change
Expand Up @@ -629,10 +629,10 @@ private bool PrintSensorInfoNew(byte[] data, int idx)
// Older WH40 units do not send battery info
// Old ones report a dummy value of 16 = 1.6V
// Newer ones report volts * 100!
battV = data[battPos] / 10;
battV = data[battPos] / 10.0;
if (battV > 2)
{
battV /= 10;
battV /= 10.0;
batt = $"{battV:f2}V ({TestBatteryWh40(data[battPos], battV)})"; // low = 1.2V
}
else
Expand Down
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("Version 3.18.0 - Build 3189")]
[assembly: AssemblyDescription("Version 3.18.0 - Build 3190")]
[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.18.0.3189")]
[assembly: AssemblyFileVersion("3.18.0.3189")]
[assembly: AssemblyVersion("3.18.0.3190")]
[assembly: AssemblyFileVersion("3.18.0.3190")]
2 changes: 1 addition & 1 deletion Updates.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
3.18.0 - b3189
3.18.0 - b3190
——————————————
- Fix: Adds Ecowitt Wh40 battery state decode
- Fix: Increase the sensitivity of the rain counter reset and make it "unit aware"
Expand Down

0 comments on commit 6601996

Please sign in to comment.