Commit d37cf3b
committed
Added a fix for the default CLOCK register value of 0.
The default CLOCK register value of 0 is not a valid time. When the RTC
was reset (either by POR or by the user's choice), the start value of 0
was invalid. This automatically corrected after one second elapsed
causing a jump in the epoch time (of 1 month + 1 day).1 parent f3d2587 commit d37cf3b
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
0 commit comments