summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorRobert Kukla <roolku@rockbox.org>2007-03-03 00:11:20 +0000
committerRobert Kukla <roolku@rockbox.org>2007-03-03 00:11:20 +0000
commitae08eeb4ffeadb7b89f913180bdac099fc5c5071 (patch)
treef17480217ca239b14a6b4ec97d7cb45bf8840cc6 /apps/gui
parent909b9462da8387e1c8379a52058c61bf18e222e5 (diff)
downloadrockbox-ae08eeb4ffeadb7b89f913180bdac099fc5c5071.zip
rockbox-ae08eeb4ffeadb7b89f913180bdac099fc5c5071.tar.gz
rockbox-ae08eeb4ffeadb7b89f913180bdac099fc5c5071.tar.bz2
rockbox-ae08eeb4ffeadb7b89f913180bdac099fc5c5071.tar.xz
remove runtime detection of h1x0 series RTC MOD, but leave driver code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12554 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/gwps-common.c7
-rw-r--r--apps/gui/statusbar.c9
2 files changed, 0 insertions, 16 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index d59ac13..b321d3b 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -23,9 +23,7 @@
#include <stdlib.h>
#include "system.h"
#include "settings.h"
-#ifdef CONFIG_RTC
#include "rtc.h"
-#endif
#include "audio.h"
#include "status.h"
#include "power.h"
@@ -974,11 +972,6 @@ static char* get_tag(struct wps_data* wps_data,
#ifdef CONFIG_RTC
case 'c': /* Real Time Clock display */
*flags |= WPS_REFRESH_DYNAMIC;
-#if CONFIG_RTC == RTC_DS1339_DS3231
- if(!rtc_detected)
- return NULL;
- else
-#endif
{
int value;
char *format = 0;
diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c
index a36ae15..fbd8943 100644
--- a/apps/gui/statusbar.c
+++ b/apps/gui/statusbar.c
@@ -28,9 +28,6 @@
#include "powermgmt.h"
#include "usb.h"
#include "led.h"
-#ifdef CONFIG_RTC
-#include "rtc.h"
-#endif
#include "status.h" /* needed for battery_state global var */
#include "action.h" /* for keys_locked */
@@ -242,9 +239,6 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
bar->info.led = led_read(HZ/2); /* delay should match polling interval */
#endif
#ifdef CONFIG_RTC
-#if CONFIG_RTC == RTC_DS1339_DS3231
- if(rtc_detected)
-#endif
{
struct tm* tm = get_time();
bar->info.hour = tm->tm_hour;
@@ -330,9 +324,6 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
gui_statusbar_icon_lock_remote(display);
#endif
#ifdef CONFIG_RTC
-#if CONFIG_RTC == RTC_DS1339_DS3231
- if(rtc_detected)
-#endif
gui_statusbar_time(display, bar->info.hour, bar->info.minute);
#endif /* CONFIG_RTC */
#if (CONFIG_LED == LED_VIRTUAL) || defined(HAVE_REMOTE_LCD)