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 56f845a6dd..b5ec302c23 100644
--- a/apps/plugins/SOURCES
+++ b/apps/plugins/SOURCES
@@ -76,7 +76,7 @@ video.c
76vu_meter.c 76vu_meter.c
77wormlet.c 77wormlet.c
78 78
79#ifdef CONFIG_RTC 79#if CONFIG_RTC
80clock.c 80clock.c
81#if CONFIG_KEYPAD == RECORDER_PAD /* Recorder models only for now */ 81#if CONFIG_KEYPAD == RECORDER_PAD /* Recorder models only for now */
82calendar.c 82calendar.c
diff --git a/apps/plugins/bounce.c b/apps/plugins/bounce.c
index 46d9d88b21..c5c9dad83c 100644
--- a/apps/plugins/bounce.c
+++ b/apps/plugins/bounce.c
@@ -271,7 +271,7 @@ struct counter values[]={
271 {"ydist", -6}, 271 {"ydist", -6},
272}; 272};
273 273
274#ifdef CONFIG_RTC 274#if CONFIG_RTC
275 275
276#define CLOCK_STEP (0xffffffff/60) 276#define CLOCK_STEP (0xffffffff/60)
277#define CLOCK_FRAC (0xffffffff%60) 277#define CLOCK_FRAC (0xffffffff%60)
@@ -382,7 +382,7 @@ static int scrollit(void)
382 return -1; 382 return -1;
383 } 383 }
384 rb->lcd_clear_display(); 384 rb->lcd_clear_display();
385#ifdef CONFIG_RTC 385#if CONFIG_RTC
386 addclock(); 386 addclock();
387#endif 387#endif
388 388
@@ -451,7 +451,7 @@ static int loopit(void)
451 x+= speed[xsanke&15] + values[NUM_XADD].num; 451 x+= speed[xsanke&15] + values[NUM_XADD].num;
452 452
453 rb->lcd_clear_display(); 453 rb->lcd_clear_display();
454#ifdef CONFIG_RTC 454#if CONFIG_RTC
455 addclock(); 455 addclock();
456#endif 456#endif
457 if(timeout) { 457 if(timeout) {
@@ -516,7 +516,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
516 rb->sleep(HZ); 516 rb->sleep(HZ);
517 rb->lcd_set_drawmode(DRMODE_FG); 517 rb->lcd_set_drawmode(DRMODE_FG);
518 init_tables(); 518 init_tables();
519#ifdef CONFIG_RTC 519#if CONFIG_RTC
520 init_clock(); 520 init_clock();
521#endif 521#endif
522 522
diff --git a/apps/plugins/calendar.c b/apps/plugins/calendar.c
index 34af4746a9..8c0b6af5b9 100644
--- a/apps/plugins/calendar.c
+++ b/apps/plugins/calendar.c
@@ -19,7 +19,7 @@
19 ****************************************************************************/ 19 ****************************************************************************/
20#include "plugin.h" 20#include "plugin.h"
21 21
22#if defined(HAVE_LCD_BITMAP) && defined(CONFIG_RTC) 22#if defined(HAVE_LCD_BITMAP) && (CONFIG_RTC != 0)
23 23
24#include <timefuncs.h> 24#include <timefuncs.h>
25 25
@@ -71,7 +71,7 @@ static int calc_weekday( struct shown *shown )
71static void calendar_init(struct today *today, struct shown *shown) 71static void calendar_init(struct today *today, struct shown *shown)
72{ 72{
73 int w,h; 73 int w,h;
74#ifdef CONFIG_RTC 74#if CONFIG_RTC
75 struct tm *tm; 75 struct tm *tm;
76#else 76#else
77 (void)today; 77 (void)today;
@@ -83,7 +83,7 @@ static void calendar_init(struct today *today, struct shown *shown)
83 use_system_font = true; 83 use_system_font = true;
84 } 84 }
85 rb->lcd_clear_display(); 85 rb->lcd_clear_display();
86#ifdef CONFIG_RTC 86#if CONFIG_RTC
87 tm = rb->get_time(); 87 tm = rb->get_time();
88 today->mon = tm->tm_mon +1; 88 today->mon = tm->tm_mon +1;
89 today->year = 2000+tm->tm_year%100; 89 today->year = 2000+tm->tm_year%100;