forked from len0rd/rockbox
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
This commit is contained in:
parent
bc4e2db1a6
commit
b1b1026e1d
1 changed files with 11 additions and 7 deletions
|
@ -86,6 +86,8 @@ Original release, featuring analog / digital modes and a few options.
|
||||||
#include "plugin.h"
|
#include "plugin.h"
|
||||||
#include "time.h"
|
#include "time.h"
|
||||||
|
|
||||||
|
#if !(CONFIG_KEYPAD == IPOD_3G_PAD) /* let's not compile for 3g for now */
|
||||||
|
|
||||||
PLUGIN_HEADER
|
PLUGIN_HEADER
|
||||||
|
|
||||||
#define CLOCK_VERSION "v3.0"
|
#define CLOCK_VERSION "v3.0"
|
||||||
|
@ -2694,7 +2696,7 @@ void counter_settings(void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(cursorpos == 3)
|
if(cursorpos == 3)
|
||||||
#if CONFIG_KEYPAD == RECORDER_PAD
|
#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
|
||||||
if(target_hour < 9)
|
if(target_hour < 9)
|
||||||
target_hour++;
|
target_hour++;
|
||||||
else
|
else
|
||||||
|
@ -2706,7 +2708,7 @@ void counter_settings(void)
|
||||||
target_hour = 9;
|
target_hour = 9;
|
||||||
#endif
|
#endif
|
||||||
else if(cursorpos == 4)
|
else if(cursorpos == 4)
|
||||||
#if CONFIG_KEYPAD == RECORDER_PAD
|
#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
|
||||||
if(target_minute < 59)
|
if(target_minute < 59)
|
||||||
target_minute++;
|
target_minute++;
|
||||||
else
|
else
|
||||||
|
@ -2718,7 +2720,7 @@ void counter_settings(void)
|
||||||
target_minute = 59;
|
target_minute = 59;
|
||||||
#endif
|
#endif
|
||||||
else
|
else
|
||||||
#if CONFIG_KEYPAD == RECORDER_PAD
|
#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
|
||||||
if(target_second < 59)
|
if(target_second < 59)
|
||||||
target_second++;
|
target_second++;
|
||||||
else
|
else
|
||||||
|
@ -2742,19 +2744,19 @@ void counter_settings(void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(cursorpos == 3)
|
if(cursorpos == 3)
|
||||||
#if CONFIG_KEYPAD == RECORDER_PAD
|
#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
|
||||||
if(target_hour > 0)
|
if(target_hour > 0)
|
||||||
target_hour--;
|
target_hour--;
|
||||||
else
|
else
|
||||||
target_hour = 9;
|
target_hour = 9;
|
||||||
#elif CONFIG_KEYPAD == IPOD_4G_PAD
|
#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
|
||||||
if(target_hour < 9)
|
if(target_hour < 9)
|
||||||
target_hour++;
|
target_hour++;
|
||||||
else
|
else
|
||||||
target_hour = 0;
|
target_hour = 0;
|
||||||
#endif
|
#endif
|
||||||
else if(cursorpos == 4)
|
else if(cursorpos == 4)
|
||||||
#if CONFIG_KEYPAD == RECORDER_PAD
|
#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
|
||||||
if(target_minute > 0)
|
if(target_minute > 0)
|
||||||
target_minute--;
|
target_minute--;
|
||||||
else
|
else
|
||||||
|
@ -2766,7 +2768,7 @@ void counter_settings(void)
|
||||||
target_minute = 0;
|
target_minute = 0;
|
||||||
#endif
|
#endif
|
||||||
else
|
else
|
||||||
#if CONFIG_KEYPAD == RECORDER_PAD
|
#if (CONFIG_KEYPAD == RECORDER_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
|
||||||
if(target_second > 0)
|
if(target_second > 0)
|
||||||
target_second--;
|
target_second--;
|
||||||
else
|
else
|
||||||
|
@ -3094,3 +3096,5 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue