summaryrefslogtreecommitdiff
path: root/apps/plugins/calendar.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/calendar.c')
-rw-r--r--apps/plugins/calendar.c6
1 files changed, 3 insertions, 3 deletions
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;