From 50b5ee4781a44234b4ea5dccf3be6ae5ec9fd324 Mon Sep 17 00:00:00 2001 From: Robert Kukla Date: Wed, 28 Feb 2007 13:20:36 +0000 Subject: FS#6419 - driver for H1x0 series RTC Mod with runtime detection git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12520 a1c6a512-1295-4272-9138-f99709370657 --- apps/scrobbler.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/scrobbler.c') diff --git a/apps/scrobbler.c b/apps/scrobbler.c index a339429..1c0d98c 100644 --- a/apps/scrobbler.c +++ b/apps/scrobbler.c @@ -35,6 +35,7 @@ http://www.audioscrobbler.net/wiki/Portable_Player_Logging #ifdef CONFIG_RTC #include "time.h" #include "timefuncs.h" +#include "rtc.h" #endif #include "scrobbler.h" @@ -208,6 +209,11 @@ void scrobbler_change_event(struct mp3entry *id) logf("SCROBBLER: add pending"); copy_mp3entry(&scrobbler_entry, id); #ifdef CONFIG_RTC +#if CONFIG_RTC == RTC_DS1339_DS3231 + if(!rtc_detected) + timestamp = 0; + else +#endif timestamp = mktime(get_time()); #else timestamp = 0; -- cgit v1.1