Skip to content

Commit

Permalink
Merge pull request #108 from mcrossley/master
Browse files Browse the repository at this point in the history
v3.10.4
  • Loading branch information
mcrossley authored Mar 22, 2021
2 parents bd873b6 + 220afac commit b9da880
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
17 changes: 13 additions & 4 deletions CumulusMX/Cumulus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2382,7 +2382,7 @@ internal void RealtimeTimerTick(object sender, ElapsedEventArgs elapsedEventArgs
// Process any files
if (RealtimeCopyInProgress)
{
LogDebugMessage($"Realtime[{cycle}]: Warning, a previous cycle is still processing local files. Skipping this interval.");
LogMessage($"Realtime[{cycle}]: Warning, a previous cycle is still processing local files. Skipping this interval.");
}
else
{
Expand All @@ -2396,8 +2396,17 @@ internal void RealtimeTimerTick(object sender, ElapsedEventArgs elapsedEventArgs
// Is a previous cycle still running?
if (RealtimeFtpInProgress)
{
LogDebugMessage($"Realtime[{cycle}]: Warning, a previous cycle is still trying to connect to FTP server, skip count = {++realtimeFTPRetries}");
LogDebugMessage($"Realtime[{cycle}]: No FTP attempted this cycle");
LogMessage($"Realtime[{cycle}]: Warning, a previous cycle is still trying to connect to FTP server, skip count = {++realtimeFTPRetries}");
// realtimeinvertval is in ms, if a session has been uploading for 5 minutes - abort it and reconnect
if (realtimeFTPRetries * RealtimeInterval / 1000 > 5 * 60)
{
LogMessage($"Realtime[{cycle}]: Realtime has been in progress for more than 5 minutes, attempting to reconnect.");
RealtimeFTPConnectionTest(cycle);
}
else
{
LogMessage($"Realtime[{cycle}]: No FTP attempted this cycle");
}
}
else
{
Expand Down Expand Up @@ -2536,7 +2545,7 @@ private void RealtimeFTPConnectionTest(uint cycle)
{
RealtimeFTP.Connect();
}
LogDebugMessage($"Realtime[{cycle}]: Reconnected with server OK");
LogMessage($"Realtime[{cycle}]: Reconnected with server OK");
}
catch (Exception ex)
{
Expand Down
2 changes: 1 addition & 1 deletion CumulusMX/GW1000Station.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ private void GetLiveData()
break;
case 0x4C: //All sensor lowbatt 16 char
// This has been deprecated since v1.6.5 - now use CMD_READ_SENSOR_ID_NEW
if (tenMinuteChanged && fwVersion.CompareTo("1.6.5") >= 0)
if (tenMinuteChanged && fwVersion.CompareTo(new Version("1.6.5")) >= 0)
{
batteryLow = batteryLow || DoBatteryStatus(data, idx);
}
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.10.3 - Build 3120")]
[assembly: AssemblyDescription("Version 3.10.4 - Build 3121")]
[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.3.3120")]
[assembly: AssemblyFileVersion("3.10.3.3120")]
[assembly: AssemblyVersion("3.10.4.3121")]
[assembly: AssemblyFileVersion("3.10.4.3121")]
7 changes: 7 additions & 0 deletions Updates.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
3.10.4 - b3121
——————————————
- Fix: Issue introduced in v3.10.3 decoding Ecowitt live data
- Fix: Catch real time FTP updates that have hung for more than 5 minutes and restart them.



3.10.3 - b3120
——————————————
- Fix: Problem with setpagedata.js in "/legacy-webfiles"
Expand Down

0 comments on commit b9da880

Please sign in to comment.