summaryrefslogtreecommitdiff
path: root/apps/plugins/clock.c
diff options
context:
space:
mode:
authorZakk Roberts <midk@rockbox.org>2006-03-06 04:09:37 +0000
committerZakk Roberts <midk@rockbox.org>2006-03-06 04:09:37 +0000
commitb1b1026e1da9da7d3d472bd85cd78dbd62c5ae61 (patch)
treece27f8dd5ec58c626a6b5f9e09325fe8d42952de /apps/plugins/clock.c
parentbc4e2db1a624ec9e51d6f5d878ffcc5817cbcda0 (diff)
downloadrockbox-b1b1026e1da9da7d3d472bd85cd78dbd62c5ae61.tar.gz
rockbox-b1b1026e1da9da7d3d472bd85cd78dbd62c5ae61.zip
Fix H300 builds. Don't compile for iPod 3G yet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8929 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/clock.c')
-rw-r--r--apps/plugins/clock.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/apps/plugins/clock.c b/apps/plugins/clock.c
index 81cbe06e91..8fc37d3e75 100644
--- a/apps/plugins/clock.c
+++ b/apps/plugins/clock.c
@@ -86,6 +86,8 @@ Original release, featuring analog / digital modes and a few options.
86#include "plugin.h" 86#include "plugin.h"
87#include "time.h" 87#include "time.h"
88 88
89#if !(CONFIG_KEYPAD == IPOD_3G_PAD) /* let's not compile for 3g for now */
90
89PLUGIN_HEADER 91PLUGIN_HEADER
90 92
91#define CLOCK_VERSION "v3.0" 93#define CLOCK_VERSION "v3.0"
@@ -2694,7 +2696,7 @@ void counter_settings(void)
2694 else 2696 else
2695 { 2697 {
2696 if(cursorpos == 3) 2698 if(cursorpos == 3)
2697#if CONFIG_KEYPAD == RECORDER_PAD 2699#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
2698 if(target_hour < 9) 2700 if(target_hour < 9)
2699 target_hour++; 2701 target_hour++;
2700 else 2702 else
@@ -2706,7 +2708,7 @@ void counter_settings(void)
2706 target_hour = 9; 2708 target_hour = 9;
2707#endif 2709#endif
2708 else if(cursorpos == 4) 2710 else if(cursorpos == 4)
2709#if CONFIG_KEYPAD == RECORDER_PAD 2711#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
2710 if(target_minute < 59) 2712 if(target_minute < 59)
2711 target_minute++; 2713 target_minute++;
2712 else 2714 else
@@ -2718,7 +2720,7 @@ void counter_settings(void)
2718 target_minute = 59; 2720 target_minute = 59;
2719#endif 2721#endif
2720 else 2722 else
2721#if CONFIG_KEYPAD == RECORDER_PAD 2723#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
2722 if(target_second < 59) 2724 if(target_second < 59)
2723 target_second++; 2725 target_second++;
2724 else 2726 else
@@ -2742,19 +2744,19 @@ void counter_settings(void)
2742 else 2744 else
2743 { 2745 {
2744 if(cursorpos == 3) 2746 if(cursorpos == 3)
2745#if CONFIG_KEYPAD == RECORDER_PAD 2747#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
2746 if(target_hour > 0) 2748 if(target_hour > 0)
2747 target_hour--; 2749 target_hour--;
2748 else 2750 else
2749 target_hour = 9; 2751 target_hour = 9;
2750#elif CONFIG_KEYPAD == IPOD_4G_PAD 2752#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
2751 if(target_hour < 9) 2753 if(target_hour < 9)
2752 target_hour++; 2754 target_hour++;
2753 else 2755 else
2754 target_hour = 0; 2756 target_hour = 0;
2755#endif 2757#endif
2756 else if(cursorpos == 4) 2758 else if(cursorpos == 4)
2757#if CONFIG_KEYPAD == RECORDER_PAD 2759#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
2758 if(target_minute > 0) 2760 if(target_minute > 0)
2759 target_minute--; 2761 target_minute--;
2760 else 2762 else
@@ -2766,7 +2768,7 @@ void counter_settings(void)
2766 target_minute = 0; 2768 target_minute = 0;
2767#endif 2769#endif
2768 else 2770 else
2769#if CONFIG_KEYPAD == RECORDER_PAD 2771#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
2770 if(target_second > 0) 2772 if(target_second > 0)
2771 target_second--; 2773 target_second--;
2772 else 2774 else
@@ -3094,3 +3096,5 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
3094 } 3096 }
3095 } 3097 }
3096} 3098}
3099
3100#endif