forked from len0rd/rockbox
Removed car adapter mode for Ondio, and changed the misleading config option HAVE_BATTERIES to the more appropriate HAVE_CHARGING
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5242 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f5bdf6952c
commit
ccfa4cd97a
9 changed files with 15 additions and 9 deletions
|
|
@ -151,7 +151,7 @@ void init(void)
|
|||
|
||||
powermgmt_init();
|
||||
|
||||
#ifdef HAVE_BATTERIES
|
||||
#ifdef HAVE_CHARGING
|
||||
if (coldstart && charger_inserted() && !global_settings.car_adapter_mode)
|
||||
{
|
||||
rc = charging_screen(); /* display a "charging" screen */
|
||||
|
|
|
|||
|
|
@ -231,7 +231,7 @@ void charging_display_info(bool animate)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BATTERIES
|
||||
#ifdef HAVE_CHARGING
|
||||
/* blocks while charging, returns on event:
|
||||
1 if charger cable was removed
|
||||
2 if Off/Stop key was pressed
|
||||
|
|
@ -283,7 +283,7 @@ int charging_screen(void)
|
|||
|
||||
return rc;
|
||||
}
|
||||
#endif /* HAVE_BATTERIES */
|
||||
#endif /* HAVE_CHARGING */
|
||||
|
||||
|
||||
#if CONFIG_KEYPAD == RECORDER_PAD
|
||||
|
|
|
|||
|
|
@ -224,7 +224,9 @@ static const struct bit_entry rtc_bits[] =
|
|||
#elif CONFIG_BATTERY == BATT_3AAA_ALKALINE
|
||||
{12, S_O(battery_capacity), 1000, "battery capacity", NULL },
|
||||
#endif
|
||||
#ifdef HAVE_CHARGING
|
||||
{1, S_O(car_adapter_mode), false, "car adapter mode", off_on },
|
||||
#endif
|
||||
|
||||
/* new stuff to be added here */
|
||||
/* If values are just added to the end, no need to bump the version. */
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ void dac_line_in(bool enable);
|
|||
/* This flag is set by dirbrowse() if a new language is loaded */
|
||||
bool language_changed;
|
||||
|
||||
#ifdef HAVE_CHARGING
|
||||
static bool car_adapter_mode(void)
|
||||
{
|
||||
return set_bool_options( str(LANG_CAR_ADAPTER_MODE),
|
||||
|
|
@ -66,6 +67,7 @@ static bool car_adapter_mode(void)
|
|||
STR(LANG_SET_BOOL_NO),
|
||||
set_car_adapter_mode);
|
||||
}
|
||||
#endif
|
||||
|
||||
static bool contrast(void)
|
||||
{
|
||||
|
|
@ -1351,7 +1353,9 @@ static bool system_settings_menu(void)
|
|||
#if CONFIG_HWCODEC == MAS3507D
|
||||
{ ID2P(LANG_LINE_IN), line_in },
|
||||
#endif
|
||||
#ifdef HAVE_CHARGING
|
||||
{ ID2P(LANG_CAR_ADAPTER_MODE), car_adapter_mode },
|
||||
#endif
|
||||
{ ID2P(LANG_MANAGE_MENU), manage_settings_menu },
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@
|
|||
#define USB_FMRECORDERSTYLE 1
|
||||
|
||||
/* Define this if the platform can charge batteries */
|
||||
#define HAVE_BATTERIES 1
|
||||
#define HAVE_CHARGING 1
|
||||
|
||||
/* The start address index for ROM builds */
|
||||
#define ROM_START 0x14010
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
#define CONFIG_BATTERY BATT_LIION2200
|
||||
|
||||
/* Define this if the platform can charge batteries */
|
||||
#define HAVE_BATTERIES 1
|
||||
#define HAVE_CHARGING 1
|
||||
|
||||
/* The start address index for ROM builds */
|
||||
#define ROM_START 0x11010
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
#define USB_PLAYERSTYLE 1
|
||||
|
||||
/* Define this if the platform can charge batteries */
|
||||
#define HAVE_BATTERIES 1
|
||||
#define HAVE_CHARGING 1
|
||||
|
||||
/* Define this for programmable LED available */
|
||||
#define HAVE_LED
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
#define USB_RECORDERSTYLE 1
|
||||
|
||||
/* Define this if the platform can charge batteries */
|
||||
#define HAVE_BATTERIES 1
|
||||
#define HAVE_CHARGING 1
|
||||
|
||||
/* The start address index for ROM builds */
|
||||
#define ROM_START 0x11010
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@
|
|||
#define USB_FMRECORDERSTYLE 1
|
||||
|
||||
/* Define this if the platform can charge batteries */
|
||||
#define HAVE_BATTERIES 1
|
||||
#define HAVE_CHARGING 1
|
||||
|
||||
/* The start address index for ROM builds */
|
||||
#define ROM_START 0x12010
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue