diff options
| author | Uwe Freese <thebreaker@rockbox.org> | 2002-12-14 15:44:01 +0000 |
|---|---|---|
| committer | Uwe Freese <thebreaker@rockbox.org> | 2002-12-14 15:44:01 +0000 |
| commit | 062afb3a360ae93228a0069154906a25586f0bf2 (patch) | |
| tree | 58190a27a73aa4f4694fdec38acd3e4415deac4d | |
| parent | 9c970442ac0de77b5199c1c0020545a7d4d02acd (diff) | |
| download | rockbox-062afb3a360ae93228a0069154906a25586f0bf2.zip rockbox-062afb3a360ae93228a0069154906a25586f0bf2.tar.gz rockbox-062afb3a360ae93228a0069154906a25586f0bf2.tar.bz2 rockbox-062afb3a360ae93228a0069154906a25586f0bf2.tar.xz | |
main menu shows different charge states
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2986 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/main_menu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c index 234a21f..ade84ba 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c @@ -185,8 +185,12 @@ bool show_info(void) lcd_puts(0, y++, s); #ifdef HAVE_CHARGE_CTRL - if (charger_enabled) + if (charge_state == 1) snprintf(s, sizeof(s), str(LANG_BATTERY_CHARGE)); + else if (charge_state == 2) + snprintf(s, sizeof(s), str(LANG_BATTERY_TOPOFF_CHARGE)); + else if (charge_state == 3) + snprintf(s, sizeof(s), str(LANG_BATTERY_TRICKLE_CHARGE)); else #endif snprintf(s, sizeof(s), str(LANG_BATTERY_TIME), battery_level(), |