summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-27 21:00:49 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-28 01:07:45 +0000
commit5e72616618658c8b377db323696042ca122a5c89 (patch)
tree5f52d841e789a7d63473c0604aa0c0a468e8ab5d /firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c
parentbe04c4be0afbdef36f2968dc291af54360de8e23 (diff)
downloadrockbox-5e72616618.tar.gz
rockbox-5e72616618.tar.bz2
rockbox-5e72616618.zip
FS#8778: Fix iPod 1G scroll wheel not being enabled (Mark Fawcus and Rune Pade)
They confirmed it worked in the original ticket. Change-Id: I949f119554a1e8bbdd0e4160c104cbc4aa2bd17d
Diffstat (limited to 'firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c')
-rw-r--r--firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c b/firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c
index 37c719f2b1..4a9fe2e568 100644
--- a/firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c
+++ b/firmware/target/arm/ipod/1g2g/adc-ipod-1g2g.c
@@ -40,7 +40,7 @@ unsigned short adc_scan(int channel)
(void)channel; /* there is only one */
mutex_lock(&adc_mtx);
- if ((IPOD_HW_REVISION >> 16) == 1)
+ if ((IPOD_HW_REVISION >> 16) != 2)
{
int i;
unsigned pval = GPIOB_OUTPUT_VAL;
@@ -109,7 +109,7 @@ void adc_init(void)
GPIOB_ENABLE |= 0x1e; /* enable B1..B4 */
- if ((IPOD_HW_REVISION >> 16) == 1)
+ if ((IPOD_HW_REVISION >> 16) != 2)
{
GPIOB_OUTPUT_EN = (GPIOB_OUTPUT_EN & ~0x08) | 0x16;
/* B1, B2, B4 -> output, B3 -> input */