summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2005-03-23 20:53:37 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2005-03-23 20:53:37 +0000
commit3644fa28245d84b7bccc65661ca6640f029c000c (patch)
treec0fa52d31f60c9ea7d8b660e489ada6b062563e5 /apps/debug_menu.c
parent9306caae3df85abecc1a7990d73c89c570d37d79 (diff)
downloadrockbox-3644fa28245d84b7bccc65661ca6640f029c000c.zip
rockbox-3644fa28245d84b7bccc65661ca6640f029c000c.tar.gz
rockbox-3644fa28245d84b7bccc65661ca6640f029c000c.tar.bz2
rockbox-3644fa28245d84b7bccc65661ca6640f029c000c.tar.xz
patch # 1159539 from GvB: V1 charging cleanup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6224 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 1d42cf8..9d5028a 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1247,9 +1247,10 @@ bool view_battery(void)
lcd_puts(0, 3, buf);
#endif
#ifdef HAVE_CHARGE_CTRL
- snprintf(buf, 30, "Charging: %s",
- charger_enabled ? "yes" : "no");
- lcd_puts(0, 4, buf);
+ snprintf(buf, 30, "Chgr: %s %s",
+ charger_inserted() ? "present" : "absent",
+ charger_enabled ? "on" : "off");
+ lcd_puts(0, 3, buf);
snprintf(buf, 30, "short delta: %d", short_delta);
lcd_puts(0, 5, buf);
snprintf(buf, 30, "long delta: %d", long_delta);
@@ -1271,7 +1272,7 @@ bool view_battery(void)
}
break;
- case 3: /* remeining time estimation: */
+ case 3: /* remaining time estimation: */
lcd_clear_display();
#ifdef HAVE_CHARGE_CTRL
@@ -1283,23 +1284,24 @@ bool view_battery(void)
snprintf(buf, 30, "Lvl@cyc st: %d%%", powermgmt_last_cycle_level);
lcd_puts(0, 2, buf);
+
+ snprintf(buf, 30, "P=%2d I=%2d", pid_p, pid_i);
+ lcd_puts(0, 3, buf);
+
+ snprintf(buf, 30, "Trickle sec: %d/60", trickle_sec);
+ lcd_puts(0, 4, buf);
#endif
snprintf(buf, 30, "Last PwrHist: %d.%02d V",
power_history[0] / 100,
power_history[0] % 100);
- lcd_puts(0, 3, buf);
-
- snprintf(buf, 30, "battery level: %d%%", battery_level());
lcd_puts(0, 5, buf);
- snprintf(buf, 30, "Est. remain: %d m", battery_time());
+ snprintf(buf, 30, "battery level: %d%%", battery_level());
lcd_puts(0, 6, buf);
-#ifdef HAVE_CHARGE_CTRL
- snprintf(buf, 30, "Trickle sec: %d/60", trickle_sec);
+ snprintf(buf, 30, "Est. remain: %d m", battery_time());
lcd_puts(0, 7, buf);
-#endif
break;
}