summaryrefslogtreecommitdiff
path: root/firmware/common/timefuncs.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/timefuncs.c')
-rw-r--r--firmware/common/timefuncs.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/firmware/common/timefuncs.c b/firmware/common/timefuncs.c
index 574551bec7..86f76e5173 100644
--- a/firmware/common/timefuncs.c
+++ b/firmware/common/timefuncs.c
@@ -35,12 +35,6 @@ struct tm *get_time(void)
35 buffer to match the data sheet */ 35 buffer to match the data sheet */
36 rtc_read_multiple(1, &rtcbuf[1], 7); 36 rtc_read_multiple(1, &rtcbuf[1], 7);
37 37
38 for(i = 0;i < 7;i++)
39 {
40 DEBUGF("%02x ", rtcbuf[i]);
41 }
42 DEBUGF("\n");
43
44 tm.tm_sec = ((rtcbuf[1] & 0x70) >> 4) * 10 + (rtcbuf[1] & 0x0f); 38 tm.tm_sec = ((rtcbuf[1] & 0x70) >> 4) * 10 + (rtcbuf[1] & 0x0f);
45 tm.tm_min = ((rtcbuf[2] & 0x70) >> 4) * 10 + (rtcbuf[2] & 0x0f); 39 tm.tm_min = ((rtcbuf[2] & 0x70) >> 4) * 10 + (rtcbuf[2] & 0x0f);
46 tm.tm_hour = ((rtcbuf[3] & 0x30) >> 4) * 10 + (rtcbuf[3] & 0x0f); 40 tm.tm_hour = ((rtcbuf[3] & 0x30) >> 4) * 10 + (rtcbuf[3] & 0x0f);