On Wed, May 19, 2010 at 8:24 AM,  <mai...@svn.rockbox.org> wrote:
> Date: 2010-05-19 15:24:18 +0200 (Wed, 19 May 2010)
> New Revision: 26162
>
> Log Message:
> Add charging/discharging indication to battery debug menu if CONFIG_CHARGING 
> >= CHARGING_MONITOR
>
> Modified:
>   trunk/apps/debug_menu.c
>
> Modified: trunk/apps/debug_menu.c
> ===================================================================
> --- trunk/apps/debug_menu.c     2010-05-19 12:11:57 UTC (rev 26161)
> +++ trunk/apps/debug_menu.c     2010-05-19 13:24:18 UTC (rev 26162)
> @@ -1534,8 +1534,12 @@
>                 break;
>
>             case 1: /* status: */
> +#if CONFIG_CHARGING >= CHARGING_MONITOR
> +                lcd_putsf(0, 0, "Pwr status: %s",
> +                         charging_state() ? "charging" : "discharging");
> +#else
>                 lcd_puts(0, 0, "Power status:");
> -
> +#endif
>                 battery_read_info(&y, NULL);
>                 lcd_putsf(0, 1, "Battery: %d.%03d V", y / 1000, y % 1000);
>  #ifdef ADC_EXT_POWER
>
> _______________________________________________
> rockbox-cvs mailing list
> rockbox-...@cool.haxx.se
> http://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox-cvs
>

Charging status was already being displayed for several other targets.
 This commit causes the charging status information to be duplicated
on those targets.

Reply via email to