summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
authorRobert Kukla <roolku@rockbox.org>2007-02-28 13:20:36 +0000
committerRobert Kukla <roolku@rockbox.org>2007-02-28 13:20:36 +0000
commit50b5ee4781a44234b4ea5dccf3be6ae5ec9fd324 (patch)
treed5197ea90c5dcfa574b84743ecbbd7fa2a754e55 /apps/gui/gwps-common.c
parent343c428f2cf97c82540aecf07d154e43ff40e79a (diff)
downloadrockbox-50b5ee4781a44234b4ea5dccf3be6ae5ec9fd324.tar.gz
rockbox-50b5ee4781a44234b4ea5dccf3be6ae5ec9fd324.zip
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
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 70f5565b61..8fa80c725a 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -23,7 +23,9 @@
23#include <stdlib.h> 23#include <stdlib.h>
24#include "system.h" 24#include "system.h"
25#include "settings.h" 25#include "settings.h"
26#ifdef CONFIG_RTC
26#include "rtc.h" 27#include "rtc.h"
28#endif
27#include "audio.h" 29#include "audio.h"
28#include "status.h" 30#include "status.h"
29#include "power.h" 31#include "power.h"
@@ -972,6 +974,11 @@ static char* get_tag(struct wps_data* wps_data,
972#ifdef CONFIG_RTC 974#ifdef CONFIG_RTC
973 case 'c': /* Real Time Clock display */ 975 case 'c': /* Real Time Clock display */
974 *flags |= WPS_REFRESH_DYNAMIC; 976 *flags |= WPS_REFRESH_DYNAMIC;
977#if CONFIG_RTC == RTC_DS1339_DS3231
978 if(!rtc_detected)
979 return NULL;
980 else
981#endif
975 { 982 {
976 int value; 983 int value;
977 char *format = 0; 984 char *format = 0;