diff options
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r-- | apps/gui/gwps-common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 70f5565b61..8fa80c725a 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c | |||
@@ -23,7 +23,9 @@ | |||
23 | #include <stdlib.h> | 23 | #include <stdlib.h> |
24 | #include "system.h" | 24 | #include "system.h" |
25 | #include "settings.h" | 25 | #include "settings.h" |
26 | #ifdef CONFIG_RTC | ||
26 | #include "rtc.h" | 27 | #include "rtc.h" |
28 | #endif | ||
27 | #include "audio.h" | 29 | #include "audio.h" |
28 | #include "status.h" | 30 | #include "status.h" |
29 | #include "power.h" | 31 | #include "power.h" |
@@ -972,6 +974,11 @@ static char* get_tag(struct wps_data* wps_data, | |||
972 | #ifdef CONFIG_RTC | 974 | #ifdef CONFIG_RTC |
973 | case 'c': /* Real Time Clock display */ | 975 | case 'c': /* Real Time Clock display */ |
974 | *flags |= WPS_REFRESH_DYNAMIC; | 976 | *flags |= WPS_REFRESH_DYNAMIC; |
977 | #if CONFIG_RTC == RTC_DS1339_DS3231 | ||
978 | if(!rtc_detected) | ||
979 | return NULL; | ||
980 | else | ||
981 | #endif | ||
975 | { | 982 | { |
976 | int value; | 983 | int value; |
977 | char *format = 0; | 984 | char *format = 0; |