Revision 381
multiplayer
rtc.c | ||
---|---|---|
181 | 181 |
if (rtc_read_register(RTC_REG_C, &data)) return; |
182 | 182 |
|
183 | 183 |
if (data & UF) { |
184 |
printf("REACH\n"); |
|
185 | 184 |
if (rtc_read_sec(&s)) return; |
186 | 185 |
if (rtc_read_min(&m)) return; |
187 | 186 |
if (rtc_read_hour(&h)) return; |
188 |
printf("%x %x %x", h, m, s); |
|
189 | 187 |
} |
190 | 188 |
} |
Also available in: Unified diff