summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/SOURCES2
-rw-r--r--apps/plugins/bounce.c8
-rw-r--r--apps/plugins/calendar.c6
3 files changed, 8 insertions, 8 deletions
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES
index 56f845a..b5ec302 100644
--- a/apps/plugins/SOURCES
+++ b/apps/plugins/SOURCES
@@ -76,7 +76,7 @@ video.c
vu_meter.c
wormlet.c
-#ifdef CONFIG_RTC
+#if CONFIG_RTC
clock.c
#if CONFIG_KEYPAD == RECORDER_PAD /* Recorder models only for now */
calendar.c
diff --git a/apps/plugins/bounce.c b/apps/plugins/bounce.c
index 46d9d88..c5c9dad 100644
--- a/apps/plugins/bounce.c
+++ b/apps/plugins/bounce.c
@@ -271,7 +271,7 @@ struct counter values[]={
{"ydist", -6},
};
-#ifdef CONFIG_RTC
+#if CONFIG_RTC
#define CLOCK_STEP (0xffffffff/60)
#define CLOCK_FRAC (0xffffffff%60)
@@ -382,7 +382,7 @@ static int scrollit(void)
return -1;
}
rb->lcd_clear_display();
-#ifdef CONFIG_RTC
+#if CONFIG_RTC
addclock();
#endif
@@ -451,7 +451,7 @@ static int loopit(void)
x+= speed[xsanke&15] + values[NUM_XADD].num;
rb->lcd_clear_display();
-#ifdef CONFIG_RTC
+#if CONFIG_RTC
addclock();
#endif
if(timeout) {
@@ -516,7 +516,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
rb->sleep(HZ);
rb->lcd_set_drawmode(DRMODE_FG);
init_tables();
-#ifdef CONFIG_RTC
+#if CONFIG_RTC
init_clock();
#endif
diff --git a/apps/plugins/calendar.c b/apps/plugins/calendar.c
index 34af474..8c0b6af 100644
--- a/apps/plugins/calendar.c
+++ b/apps/plugins/calendar.c
@@ -19,7 +19,7 @@
****************************************************************************/
#include "plugin.h"
-#if defined(HAVE_LCD_BITMAP) && defined(CONFIG_RTC)
+#if defined(HAVE_LCD_BITMAP) && (CONFIG_RTC != 0)
#include <timefuncs.h>
@@ -71,7 +71,7 @@ static int calc_weekday( struct shown *shown )
static void calendar_init(struct today *today, struct shown *shown)
{
int w,h;
-#ifdef CONFIG_RTC
+#if CONFIG_RTC
struct tm *tm;
#else
(void)today;
@@ -83,7 +83,7 @@ static void calendar_init(struct today *today, struct shown *shown)
use_system_font = true;
}
rb->lcd_clear_display();
-#ifdef CONFIG_RTC
+#if CONFIG_RTC
tm = rb->get_time();
today->mon = tm->tm_mon +1;
today->year = 2000+tm->tm_year%100;