summaryrefslogtreecommitdiff
path: root/apps/screens.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-12-24 16:58:41 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-12-24 16:58:41 +0000
commit3157e1395674a930c74e2ef4cc4ce78dffea8569 (patch)
tree5b2a9befc3b051caf0806995ebd32a5ab3bcf5ff /apps/screens.c
parent0f9729739f2fd90759c1caeca86e487c36f98834 (diff)
downloadrockbox-3157e1395674a930c74e2ef4cc4ce78dffea8569.tar.gz
rockbox-3157e1395674a930c74e2ef4cc4ce78dffea8569.zip
Simplify powermgmt thread loops so it calls functions turn (no more power_thread_sleep). Do other target-friendly simplifications, generic battery switch handling and split sim-specific code. Whoever can, please verify charging on the Archos Recorder (due to change in the charger duty cycle code).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19579 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screens.c')
-rw-r--r--apps/screens.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 992c740460..230e9ae53c 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -209,8 +209,7 @@ static void charging_display_info(bool animate)
209 lcd_puts(0, 7, buf); 209 lcd_puts(0, 7, buf);
210 } 210 }
211 211
212#if CONFIG_CHARGING == CHARGING_CONTROL 212#ifdef ARCHOS_RECORER
213
214 snprintf(buf, 32, "Charge mode:"); 213 snprintf(buf, 32, "Charge mode:");
215 lcd_puts(0, 2, buf); 214 lcd_puts(0, 2, buf);
216 215
@@ -224,10 +223,9 @@ static void charging_display_info(bool animate)
224 snprintf(buf, 32, "not charging"); 223 snprintf(buf, 32, "not charging");
225 224
226 lcd_puts(0, 3, buf); 225 lcd_puts(0, 3, buf);
227 if (!charger_enabled) 226 if (!charger_enabled())
228 animate = false; 227 animate = false;
229#endif /* CONFIG_CHARGING == CHARGING_CONTROL */ 228#endif /* ARCHOS_RECORER */
230
231 229
232 /* middle part */ 230 /* middle part */
233 memset(charging_logo+3, 0x00, 32); 231 memset(charging_logo+3, 0x00, 32);