mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
hosted: Fix USB mode not properly initialized for some targets
All required code is already present in the left usb_set_mode call. Affects iBasso DX50, iBasso DX90, HiBy R1 and HiBy R3 PRO II. Fixes FS#13890 Change-Id: Ib554ca98a36ceeaa48c0aa699c3671a40d4fee47
This commit is contained in:
parent
8a1a3d745d
commit
ce88de54b8
1 changed files with 1 additions and 5 deletions
|
|
@ -1130,11 +1130,7 @@ void settings_apply(bool read_disk)
|
|||
memcpy(&calibration_parameters, &global_settings.ts_calibration_data, sizeof(struct touchscreen_parameter));
|
||||
#endif
|
||||
|
||||
#if defined(DX50) || defined(DX90)
|
||||
ibasso_set_usb_mode(global_settings.usb_mode);
|
||||
#elif (defined(HIBY_R3PROII) || defined(HIBY_R1)) && !defined(SIMULATOR)
|
||||
hiby_set_usb_mode(global_settings.usb_mode);
|
||||
#elif defined(HAVE_USB_POWER) && !defined(USB_NONE) && !defined(SIMULATOR)
|
||||
#if defined(HAVE_USB_POWER) && !defined(USB_NONE) && !defined(SIMULATOR)
|
||||
usb_set_mode(global_settings.usb_mode);
|
||||
#endif
|
||||
#if defined(HAVE_GENERAL_PURPOSE_LED)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue