diff options
Diffstat (limited to 'apps/plugins/calendar.c')
-rw-r--r-- | apps/plugins/calendar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/calendar.c b/apps/plugins/calendar.c index df23afd721..5cb04b565c 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(HAVE_RTC) | 22 | #if defined(HAVE_LCD_BITMAP) && defined(CONFIG_RTC) |
23 | 23 | ||
24 | #include <timefuncs.h> | 24 | #include <timefuncs.h> |
25 | 25 | ||
@@ -69,7 +69,7 @@ static int calc_weekday( struct shown *shown ) | |||
69 | static void calendar_init(struct today *today, struct shown *shown) | 69 | static void calendar_init(struct today *today, struct shown *shown) |
70 | { | 70 | { |
71 | int w,h; | 71 | int w,h; |
72 | #ifdef HAVE_RTC | 72 | #ifdef CONFIG_RTC |
73 | struct tm *tm; | 73 | struct tm *tm; |
74 | #else | 74 | #else |
75 | (void)today; | 75 | (void)today; |
@@ -81,7 +81,7 @@ static void calendar_init(struct today *today, struct shown *shown) | |||
81 | use_system_font = true; | 81 | use_system_font = true; |
82 | } | 82 | } |
83 | rb->lcd_clear_display(); | 83 | rb->lcd_clear_display(); |
84 | #ifdef HAVE_RTC | 84 | #ifdef CONFIG_RTC |
85 | tm = rb->get_time(); | 85 | tm = rb->get_time(); |
86 | today->mon = tm->tm_mon +1; | 86 | today->mon = tm->tm_mon +1; |
87 | today->year = 2000+tm->tm_year%100; | 87 | today->year = 2000+tm->tm_year%100; |