Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Days of the week. #2

Open
chicory-ru opened this issue Jan 25, 2022 · 0 comments
Open

Days of the week. #2

chicory-ru opened this issue Jan 25, 2022 · 0 comments

Comments

@chicory-ru
Copy link

The range of days of the week according to the datasheet is 0-6, and you have 1-7 when recording. Although for the alarm at the very end of the code is correct.

145        day [0,7]

180        if day < 1 or day > 7:
181            raise ValueError('Day is out of range [1,7].')

280        if weekday < 0 or weekday > 6:
281            raise ValueError('weekday is out of range [0,6].')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant