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
This commit is contained in:
Boris Gjenero 2011-12-16 00:09:28 +00:00
parent 6a032a2db1
commit ff1c567417
3 changed files with 20 additions and 1 deletions

View file

@ -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_ */