Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
o0shojo0o committed Apr 24, 2022
1 parent e283cd6 commit 959ed8f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/PixelIt.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2586,15 +2586,11 @@ void ClearBMPArea()

int DayOfWeekFirstMonday(int OrigDayofWeek)
{

Log("OrigDayofWeek", String(OrigDayofWeek));
int idx = (7 + OrigDayofWeek) - 1;
Log("idx", String(idx));
if (idx > 6) // week ends at 6, because Enum.DayOfWeek is zero-based
{
idx -= 7;
}
Log("return_idx", String(idx));
return idx;
// int diff = (7 + (OrigDayofWeek - 1)) % 7;
// return OrigDayofWeek + (-1 * diff);
Expand Down

0 comments on commit 959ed8f

Please sign in to comment.