hosted: Fix USB mode not properly initialized for some targets
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Thu, 2 Jul 2026 17:05:05 -0400
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit ce88de54b89825e2b9d9b32cef746f30a67da98e Author: Roman Artiukhin <[email protected]> Date: Thu Jul 2 15:51:13 2026 +0300 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 diff --git a/apps/settings.c b/apps/settings.c index 721a537e7d..d88cb3f241 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -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) -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs