summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Ankers <dan@weirdo.org.uk>2006-12-10 23:12:59 +0000
committerDaniel Ankers <dan@weirdo.org.uk>2006-12-10 23:12:59 +0000
commitca10d89d53354365a155cd844582d2deb66dc8b4 (patch)
treeed00f4b7f980a934a1404120597b9a3e2f7f87ca
parentfcc00458a9a0769761b668de41bc8a0596279d7f (diff)
downloadrockbox-ca10d89d53354365a155cd844582d2deb66dc8b4.tar.gz
rockbox-ca10d89d53354365a155cd844582d2deb66dc8b4.tar.bz2
rockbox-ca10d89d53354365a155cd844582d2deb66dc8b4.zip
Improved charger detection for Sansa
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11713 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/export/config-e200.h4
-rw-r--r--firmware/target/arm/sandisk/sansa-e200/power-e200.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/firmware/export/config-e200.h b/firmware/export/config-e200.h
index e055373567..26b87c70fc 100644
--- a/firmware/export/config-e200.h
+++ b/firmware/export/config-e200.h
@@ -85,8 +85,8 @@
#define CONFIG_CHARGING CHARGING_SIMPLE
/* define this if the hardware can be powered off while charging */
-/* TODO: should this be set for the H10? */
-#define HAVE_POWEROFF_WHILE_CHARGING
+/* Sansa can't be powered off while charging */
+/* #define HAVE_POWEROFF_WHILE_CHARGING */
/* The start address index for ROM builds */
#define ROM_START 0x00000000
diff --git a/firmware/target/arm/sandisk/sansa-e200/power-e200.c b/firmware/target/arm/sandisk/sansa-e200/power-e200.c
index b9022974d1..42aadf66c0 100644
--- a/firmware/target/arm/sandisk/sansa-e200/power-e200.c
+++ b/firmware/target/arm/sandisk/sansa-e200/power-e200.c
@@ -34,3 +34,8 @@ bool charger_inserted(void)
return true;
return false;
}
+
+void ide_power_enable(bool on)
+{
+ (void)on;
+}