Add comment & update fcn_declare.

This commit is contained in:
Blaz Kristan 2021-03-07 12:43:13 +01:00
parent 6fa136da0c
commit 34eee005a8
2 changed files with 2 additions and 3 deletions

View File

@ -135,7 +135,7 @@ bool checkCountdown();
void setCountdown();
byte weekdayMondayFirst();
void checkTimers();
bool isDayTime();
int getSunriseUTC(int year, int month, int day, float lat, float lon, bool sunset=false);
//overlay.cpp
void initCronixie();

View File

@ -257,8 +257,6 @@ byte weekdayMondayFirst()
return wd;
}
int getSunriseUTC(int year, int month, int day, float lat, float lon, bool sunset=false);
void checkTimers()
{
if (lastTimerMinute != minute(localTime)) //only check once a new minute begins
@ -331,6 +329,7 @@ void checkTimers()
}
#define ZENITH -0.83
// get sunrise (or sunset) time (in minutes) for a given day at a given geo location
int getSunriseUTC(int year, int month, int day, float lat, float lon, bool sunset) {
//1. first calculate the day of the year
float N1 = floor(275 * month / 9);