mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
usb: Add ability to prompt user about what to do upon usb insertion
v3: Add in config option v4: Bugfixes v5: Force a redraw upon exiting v6: keypress-in-chargeonly mode enables mass storage (and vice versa) v7: Fix bootloader builds v8: Update manual, and have bootloader respect keypresses v9: Change default to mass storage (ie no change in behavior) todo: * test-build dx50/dx90 * Switch from yes/no to proper menu? * prevent WPS progress bar from drawing over us Change-Id: I82e0ccb08497b7a5aa756ce77f1332ee963703a7 ... Change-Id: I7946cf240b18a4fa8ace5e25e1eb6e97b8b12d7c
This commit is contained in:
parent
fc4fff0b81
commit
60f581e8f5
30 changed files with 224 additions and 156 deletions
|
|
@ -266,6 +266,9 @@ MAKE_MENU(battery_menu, ID2P(LANG_BATTERY_MENU), 0, Icon_NOICON,
|
|||
&usb_charging,
|
||||
#endif
|
||||
);
|
||||
#ifdef HAVE_USB_POWER
|
||||
MENUITEM_SETTING(usb_mode, &global_settings.usb_mode, NULL);
|
||||
#endif
|
||||
/* Disk */
|
||||
#ifdef HAVE_DISK_STORAGE
|
||||
MENUITEM_SETTING(disk_spindown, &global_settings.disk_spindown, NULL);
|
||||
|
|
@ -446,6 +449,8 @@ MAKE_MENU(system_menu, ID2P(LANG_SYSTEM),
|
|||
|
||||
#if defined(DX50) || defined(DX90)
|
||||
&governor,
|
||||
#endif
|
||||
#ifdef HAVE_USB_POWER
|
||||
&usb_mode,
|
||||
#endif
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue