mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
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:
parent
6a032a2db1
commit
ff1c567417
3 changed files with 20 additions and 1 deletions
|
|
@ -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_ */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue