I am summarising data collected over an hour, each hour the data is written to an eeprom. To record the hour the data was collected for, I simply use the current RTC reading (converted to decimal) -1. This works fine for all hours except midnight (hour 24) where it returns 255 instead of 23.
I could write the hour to a variable at the start of each hour, but I am curious as to what is happening.
Any suggestions?
Martin
I could write the hour to a variable at the start of each hour, but I am curious as to what is happening.
Any suggestions?
Martin