gaborsimon / WeatherStation

This project is intended to provide a self-made, basic weather station based on ATMEL AVR microcontroller and HD44780 LCD display.
MIT License
0 stars 0 forks source link

Day-Of-Week can cause bug in DST calculation #17

Closed gaborsimon closed 7 years ago

gaborsimon commented 7 years ago

Sakamoto's original algorithm calculates the Sunday as number 0. Currently the code performs re-numbering to number 7 before the DST calculation. This can cause problem.

The Sunday has to remain the number 0 and the RTC has to use this value to draw the "SU" onto the LCD.