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 df23afd..5cb04b5 100644 --- a/apps/plugins/calendar.c +++ b/apps/plugins/calendar.c @@ -19,7 +19,7 @@ ****************************************************************************/ #include "plugin.h" -#if defined(HAVE_LCD_BITMAP) && defined(HAVE_RTC) +#if defined(HAVE_LCD_BITMAP) && defined(CONFIG_RTC) #include <timefuncs.h> @@ -69,7 +69,7 @@ static int calc_weekday( struct shown *shown ) static void calendar_init(struct today *today, struct shown *shown) { int w,h; -#ifdef HAVE_RTC +#ifdef CONFIG_RTC struct tm *tm; #else (void)today; @@ -81,7 +81,7 @@ static void calendar_init(struct today *today, struct shown *shown) use_system_font = true; } rb->lcd_clear_display(); -#ifdef HAVE_RTC +#ifdef CONFIG_RTC tm = rb->get_time(); today->mon = tm->tm_mon +1; today->year = 2000+tm->tm_year%100; |