summaryrefslogtreecommitdiffstats
path: root/firmware/target
diff options
context:
space:
mode:
authorJames Buren <braewoods+rb@braewoods.net>2021-04-09 20:06:51 -0500
committerSolomon Peachy <pizza@shaftnet.org>2021-04-10 01:13:09 +0000
commit448f98d9c05da37316df1e1c2f05a01336efa381 (patch)
tree8713f7d43f48d876ad0e3fb212f5fd3fc31492c9 /firmware/target
parent13dbcab6c09d701e30addef4cadf3ea4af2774c7 (diff)
downloadrockbox-448f98d9c05da37316df1e1c2f05a01336efa381.tar.gz
rockbox-448f98d9c05da37316df1e1c2f05a01336efa381.tar.bz2
rockbox-448f98d9c05da37316df1e1c2f05a01336efa381.zip
pp: fix adc mistake where base 10 was used instead of base 16
Change-Id: I8562af8a11a22cd9edec149b2519ac0205d2b2dc
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/pp/adc-pp5020.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/pp/adc-pp5020.c b/firmware/target/arm/pp/adc-pp5020.c
index 26d0d0d6ca..e3c4551727 100644
--- a/firmware/target/arm/pp/adc-pp5020.c
+++ b/firmware/target/arm/pp/adc-pp5020.c
@@ -146,7 +146,7 @@ void adc_init(void)
ADC_STATUS |= 0x20;
/* Enable channel 1 (unknown) */
- DEV_INIT1 &=~30;
+ DEV_INIT1 &=~0x30;
ADC_ADDR |= 0x2000000;
ADC_STATUS |= 0x2000;