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:
Rob Purchase 2008-06-23 21:38:11 +00:00
parent 7a36b22f17
commit 3ca42e4aac

View file

@ -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);