From ff1c5674172c4d0a5c420b8b20e7db0bd20f71ff Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Fri, 16 Dec 2011 00:09:28 +0000 Subject: 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 --- firmware/include/timefuncs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/include/timefuncs.h') 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_ */ -- cgit v1.1