summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/ipod/1g2g/powermgmt-1g2g.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/ipod/1g2g/powermgmt-1g2g.c')
-rw-r--r--firmware/target/arm/ipod/1g2g/powermgmt-1g2g.c2
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)
{
unsigned adcval = adc_read(ADC_UNREG_POWER);
- if ((IPOD_HW_REVISION >> 16) == 1)
+ if ((IPOD_HW_REVISION >> 16) != 2)
return (adcval * BATTERY_SCALE_FACTOR_1G) >> 8;
else
return (adcval * BATTERY_SCALE_FACTOR_2G) >> 8;