diff options
author | Boris Gjenero <dreamlayers@rockbox.org> | 2011-12-16 00:09:28 +0000 |
---|---|---|
committer | Boris Gjenero <dreamlayers@rockbox.org> | 2011-12-16 00:09:28 +0000 |
commit | ff1c5674172c4d0a5c420b8b20e7db0bd20f71ff (patch) | |
tree | 54b578a9390340df47be76b3efe0ecc5db66a148 /firmware/include/timefuncs.h | |
parent | 6a032a2db19930925626536d4e117d29527148c6 (diff) | |
download | rockbox-ff1c5674172c4d0a5c420b8b20e7db0bd20f71ff.tar.gz rockbox-ff1c5674172c4d0a5c420b8b20e7db0bd20f71ff.zip |
Remove USB time sync code when there's no RTC.
Without an RTC, Rockbox doesn't keep time. In that situation, USB time sync
previously did nothing but reported success. After this change, the USB time
sync request won't be recognized on those targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31319 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include/timefuncs.h')
-rw-r--r-- | firmware/include/timefuncs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/include/timefuncs.h b/firmware/include/timefuncs.h index b7e9be53c6..4c5f0fbb42 100644 --- a/firmware/include/timefuncs.h +++ b/firmware/include/timefuncs.h | |||
@@ -30,8 +30,8 @@ struct tm *get_time(void); | |||
30 | int set_time(const struct tm *tm); | 30 | int set_time(const struct tm *tm); |
31 | #if CONFIG_RTC | 31 | #if CONFIG_RTC |
32 | bool valid_time(const struct tm *tm); | 32 | bool valid_time(const struct tm *tm); |
33 | #endif | ||
34 | void set_day_of_week(struct tm *tm); | 33 | void set_day_of_week(struct tm *tm); |
34 | #endif | ||
35 | 35 | ||
36 | #endif /* _TIMEFUNCS_H_ */ | 36 | #endif /* _TIMEFUNCS_H_ */ |
37 | 37 | ||