Version 1.4.4

Changed function check_timing: now it takes a struct tm* instead of generating one - now the main function gets the current time after initialising the shutter array.
This commit is contained in:
2021-08-30 21:52:18 +02:00
parent a9950e6c13
commit 9109cc8077
3 changed files with 22 additions and 21 deletions

View File

@@ -12,7 +12,7 @@
void get_timing (shutter *r, FILE *schedule);
//checks whether it's time to raise/lower and acts accordingly
buttons check_timing (shutter *r);
buttons check_timing (shutter *r, struct tm* now);
//checks the schedule file and sets the readhead to today's label
int find_today (FILE *schedule);