diff options
author | Mihail Zenkov <mihail.zenkov@gmail.com> | 2016-03-30 12:50:40 +0000 |
---|---|---|
committer | Gerrit Rockbox <gerrit@rockbox.org> | 2016-04-04 11:19:51 +0200 |
commit | ce90c0481a6c7a5a455791e4e7366c589e52b68c (patch) | |
tree | 06ab06467d00e4742a7028699d36e81c80b96531 /firmware/target/arm/as3525 | |
parent | e599810ffaa6412326f61d026fc598c721b3a01c (diff) |
Fix checking for CONFIG_CHARGING
Change-Id: I53b9a129679fd7b322770025106ef92033226d2a
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r-- | firmware/target/arm/as3525/ascodec-as3525.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/ascodec-as3525.c b/firmware/target/arm/as3525/ascodec-as3525.c index 634648afe4..d930d266a6 100644 --- a/firmware/target/arm/as3525/ascodec-as3525.c +++ b/firmware/target/arm/as3525/ascodec-as3525.c @@ -297,7 +297,7 @@ void ascodec_init(void) /* Generate irq for usb+charge status change */ ascodec_write(AS3514_IRQ_ENRD0, -#ifdef CONFIG_CHARGING /* m200v4 can't charge */ +#if CONFIG_CHARGING /* m200v4 can't charge */ IRQ_CHGSTAT | IRQ_ENDOFCH | #endif IRQ_USBSTAT); @@ -530,7 +530,7 @@ void ascodec_wait_adc_finished(void) semaphore_wait(&adc_done_sem, TIMEOUT_BLOCK); } -#ifdef CONFIG_CHARGING +#if CONFIG_CHARGING bool ascodec_endofch(void) { bool ret = ascodec_enrd0_shadow & CHG_ENDOFCH; |