summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/export/config-m200v4.h3
-rw-r--r--firmware/target/arm/as3525/power-as3525.c2
-rw-r--r--firmware/target/arm/as3525/usb-as3525.c3
3 files changed, 3 insertions, 5 deletions
diff --git a/firmware/export/config-m200v4.h b/firmware/export/config-m200v4.h
index dc127a7..75ac137 100644
--- a/firmware/export/config-m200v4.h
+++ b/firmware/export/config-m200v4.h
@@ -66,9 +66,6 @@
#define CONFIG_RTC RTC_AS3525
#endif
-/* Hardware controlled charging */
-#define CONFIG_CHARGING CHARGING_SIMPLE
-
/* define this if you have RTC RAM available for settings */
//#define HAVE_RTC_RAM
diff --git a/firmware/target/arm/as3525/power-as3525.c b/firmware/target/arm/as3525/power-as3525.c
index 3d191ec..53b95e3 100644
--- a/firmware/target/arm/as3525/power-as3525.c
+++ b/firmware/target/arm/as3525/power-as3525.c
@@ -37,6 +37,7 @@ void power_init(void)
{
}
+#if CONFIG_CHARGING
bool charger_inserted(void)
{
if(ascodec_read(0x25) & (1<<5))
@@ -44,6 +45,7 @@ bool charger_inserted(void)
else
return false;
}
+#endif
void ide_power_enable(bool on)
{
diff --git a/firmware/target/arm/as3525/usb-as3525.c b/firmware/target/arm/as3525/usb-as3525.c
index c9a6381..b151d50 100644
--- a/firmware/target/arm/as3525/usb-as3525.c
+++ b/firmware/target/arm/as3525/usb-as3525.c
@@ -35,7 +35,6 @@ void usb_init_device(void)
int usb_detect(void)
{
- if (charger_inserted())
- return USB_INSERTED;
+ /* TODO: Implement USB detection */
return USB_EXTRACTED;
}