diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-27 21:00:49 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-28 01:07:45 +0000 |
commit | 5e72616618658c8b377db323696042ca122a5c89 (patch) | |
tree | 5f52d841e789a7d63473c0604aa0c0a468e8ab5d /firmware/target/arm/ipod/1g2g/powermgmt-1g2g.c | |
parent | be04c4be0afbdef36f2968dc291af54360de8e23 (diff) | |
download | rockbox-5e72616618658c8b377db323696042ca122a5c89.tar.gz rockbox-5e72616618658c8b377db323696042ca122a5c89.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/powermgmt-1g2g.c')
-rw-r--r-- | firmware/target/arm/ipod/1g2g/powermgmt-1g2g.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/ipod/1g2g/powermgmt-1g2g.c b/firmware/target/arm/ipod/1g2g/powermgmt-1g2g.c index c3eca14332..b90b953c68 100644 --- a/firmware/target/arm/ipod/1g2g/powermgmt-1g2g.c +++ b/firmware/target/arm/ipod/1g2g/powermgmt-1g2g.c | |||
@@ -61,7 +61,7 @@ int _battery_voltage(void) | |||
61 | { | 61 | { |
62 | unsigned adcval = adc_read(ADC_UNREG_POWER); | 62 | unsigned adcval = adc_read(ADC_UNREG_POWER); |
63 | 63 | ||
64 | if ((IPOD_HW_REVISION >> 16) == 1) | 64 | if ((IPOD_HW_REVISION >> 16) != 2) |
65 | return (adcval * BATTERY_SCALE_FACTOR_1G) >> 8; | 65 | return (adcval * BATTERY_SCALE_FACTOR_1G) >> 8; |
66 | else | 66 | else |
67 | return (adcval * BATTERY_SCALE_FACTOR_2G) >> 8; | 67 | return (adcval * BATTERY_SCALE_FACTOR_2G) >> 8; |