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 | |
| parent | 6a032a2db19930925626536d4e117d29527148c6 (diff) | |
| download | rockbox-ff1c5674172c4d0a5c420b8b20e7db0bd20f71ff.zip rockbox-ff1c5674172c4d0a5c420b8b20e7db0bd20f71ff.tar.gz rockbox-ff1c5674172c4d0a5c420b8b20e7db0bd20f71ff.tar.bz2 rockbox-ff1c5674172c4d0a5c420b8b20e7db0bd20f71ff.tar.xz | |
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')
| -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 b7e9be5..4c5f0fb 100644 --- a/firmware/include/timefuncs.h +++ b/firmware/include/timefuncs.h @@ -30,8 +30,8 @@ struct tm *get_time(void); int set_time(const struct tm *tm); #if CONFIG_RTC bool valid_time(const struct tm *tm); -#endif void set_day_of_week(struct tm *tm); +#endif #endif /* _TIMEFUNCS_H_ */ |