Skip to content

Commit 4b4068f

Browse files
authored
Merge pull request #8 from mcrossley/master
v1.2.1
2 parents 3ee6b53 + 0fcfba8 commit 4b4068f

3 files changed

Lines changed: 10 additions & 13 deletions

File tree

CreateMissing.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
6-
<AssemblyVersion>1.2.0.0</AssemblyVersion>
7-
<FileVersion>1.2.0.0</FileVersion>
8-
<Version>1.2.0</Version>
6+
<AssemblyVersion>1.2.1.0</AssemblyVersion>
7+
<FileVersion>1.2.1.0</FileVersion>
8+
<Version>1.2.1</Version>
99
<StartupObject>CreateMissing.Program</StartupObject>
1010
<TargetFramework>net48</TargetFramework>
1111
<Authors>Mark Crossley</Authors>

Program.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,6 @@ private static Dayfilerec GetDayRecFromMonthly(DateTime date)
289289
var recCount = 0;
290290
var idx = 0;
291291

292-
293-
var entrydate = DateTime.MinValue;
294292
var lastentrydate = DateTime.MinValue;
295293
var lasttempvalue = 0.0;
296294

@@ -377,7 +375,7 @@ private static Dayfilerec GetDayRecFromMonthly(DateTime date)
377375
//var st = new List<string>(Regex.Split(line, CultureInfo.CurrentCulture.TextInfo.ListSeparator));
378376
// Regex is very expensive, let's assume the separator is always a single character
379377
var st = new List<string>(CurrentLogLines[CurrentLogLineNum].Split(dayfile.FieldSep[0]));
380-
entrydate = Utils.DdmmyyhhmmStrToDate(st[0], st[1]);
378+
var entrydate = Utils.DdmmyyhhmmStrToDate(st[0], st[1]);
381379

382380
// same meto day, or first record of the next day
383381
// we want data from 00:00/09:00 to 00:00/09:00
@@ -913,6 +911,7 @@ private static Dayfilerec GetSolarDayRecFromMonthly(DateTime date, Dayfilerec re
913911
{
914912
// we are just getting the solar values to midnight
915913
ExtractSolarData(st, ref rec, entrydate);
914+
started = true;
916915
}
917916
else if (started)
918917
{
@@ -923,12 +922,6 @@ private static Dayfilerec GetSolarDayRecFromMonthly(DateTime date, Dayfilerec re
923922

924923
return rec;
925924
}
926-
else
927-
{
928-
// We didn't find any data
929-
CurrentSolarLogLineNum = 0;
930-
return rec;
931-
}
932925

933926
CurrentSolarLogLineNum++;
934927
} // end while

Updates.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
1.2.1
2+
—————
3+
- Fix: Solar values not being populated in v1.2.0
4+
15
1.2.0
26
—————
37
- Change: Now based on .Net Framework 4.8
48
- Now parses the source files for field and date separators rather than relying on system settings
59
- Now flags if duplicate days are found in the dayfile.txt
6-
- Now flags if the out of order entries are found in dayfile.txt
10+
- Now flags if out of order entries are found in dayfile.txt
711

812
1.1.1
913
—————

0 commit comments

Comments
 (0)