Skip to content

Commit

Permalink
Clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wcbonner committed Jan 31, 2021
1 parent beaaf20 commit 4808586
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion GoveeBTTempLogger/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: GoveeBTTempLogger
Version: 2.20210130-2
Version: 2.20210131-2
Section: custom
Priority: optional
Architecture: armhf
Expand Down
10 changes: 2 additions & 8 deletions goveebttemplogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@


/////////////////////////////////////////////////////////////////////////////
static const std::string ProgramVersionString("GoveeBTTempLogger Version 2.20210130-1 Built on: " __DATE__ " at " __TIME__);
static const std::string ProgramVersionString("GoveeBTTempLogger Version 2.20210131-1 Built on: " __DATE__ " at " __TIME__);
/////////////////////////////////////////////////////////////////////////////
std::string timeToISO8601(const time_t & TheTime)
{
Expand Down Expand Up @@ -986,34 +986,28 @@ void UpdateMRTGData(const bdaddr_t& TheAddress, Govee_Temp& TheValue)
First++;
//*Last = Average(First, Last);
// Average routine ends here
if (ConsoleVerbosity > 0)
if (ConsoleVerbosity > 1)
std::cout << "[" << getTimeISO8601() << "] shuffling year " << timeToExcelLocal(FakeMRTGFile[1 + DAY_COUNT + WEEK_COUNT + MONTH_COUNT].Time) << " > " << timeToExcelLocal(FakeMRTGFile[2 + DAY_COUNT + WEEK_COUNT + MONTH_COUNT].Time) << std::endl;
// shuffle all the year samples toward the end
std::copy_backward(
FakeMRTGFile.begin() + DAY_COUNT + WEEK_COUNT + MONTH_COUNT + 1,
FakeMRTGFile.end() - 1,
FakeMRTGFile.end());
FakeMRTGFile[2 + DAY_COUNT + WEEK_COUNT + MONTH_COUNT].NormalizeTime(Govee_Temp::granularity::year);
//if (difftime(FakeMRTGFile[2 + DAY_COUNT + WEEK_COUNT + MONTH_COUNT].Time, FakeMRTGFile[3 + DAY_COUNT + WEEK_COUNT + MONTH_COUNT].Time) > YEAR_SAMPLE)
// FakeMRTGFile[2 + DAY_COUNT + WEEK_COUNT + MONTH_COUNT].Time = FakeMRTGFile[3 + DAY_COUNT + WEEK_COUNT + MONTH_COUNT].Time + YEAR_SAMPLE;
}
// shuffle all the month samples toward the end
std::copy_backward(
FakeMRTGFile.begin() + DAY_COUNT + WEEK_COUNT + 1,
FakeMRTGFile.begin() + DAY_COUNT + WEEK_COUNT + MONTH_COUNT + 1,
FakeMRTGFile.begin() + DAY_COUNT + WEEK_COUNT + MONTH_COUNT + 2);
FakeMRTGFile[2 + DAY_COUNT + WEEK_COUNT].NormalizeTime(Govee_Temp::granularity::month);
//if (difftime(FakeMRTGFile[2 + DAY_COUNT + WEEK_COUNT].Time, FakeMRTGFile[3 + DAY_COUNT + WEEK_COUNT].Time) > MONTH_SAMPLE)
// FakeMRTGFile[2 + DAY_COUNT + WEEK_COUNT].Time = FakeMRTGFile[3 + DAY_COUNT + WEEK_COUNT].Time + MONTH_SAMPLE;
}
// shuffle all the week samples toward the end
std::copy_backward(
FakeMRTGFile.begin() + DAY_COUNT + 1,
FakeMRTGFile.begin() + DAY_COUNT + WEEK_COUNT + 1,
FakeMRTGFile.begin() + DAY_COUNT + WEEK_COUNT + 2);
FakeMRTGFile[2 + DAY_COUNT].NormalizeTime(Govee_Temp::granularity::week);
//if (difftime(FakeMRTGFile[2 + DAY_COUNT].Time, FakeMRTGFile[3 + DAY_COUNT].Time) > WEEK_SAMPLE)
// FakeMRTGFile[2 + DAY_COUNT].Time = FakeMRTGFile[3 + DAY_COUNT].Time + WEEK_SAMPLE;
}
// shuffle all the day samples toward the end
std::copy_backward(
Expand Down

0 comments on commit 4808586

Please sign in to comment.