D2: Take notice of the hold button.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17773 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7a36b22f17
commit
3ca42e4aac
1 changed files with 2 additions and 0 deletions
|
@ -120,6 +120,8 @@ int button_read_device(int *data)
|
||||||
int adc;
|
int adc;
|
||||||
*data = 0;
|
*data = 0;
|
||||||
|
|
||||||
|
if (button_hold()) return BUTTON_NONE;
|
||||||
|
|
||||||
if (GPIOB & 0x4)
|
if (GPIOB & 0x4)
|
||||||
{
|
{
|
||||||
adc = adc_read(ADC_BUTTONS);
|
adc = adc_read(ADC_BUTTONS);
|
||||||
|
|
Loading…
Reference in a new issue