mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
usb-modeswitch: fix gcc-15 build
This commit is contained in:
parent
8c2b6fdb3e
commit
faffdb9551
@ -0,0 +1,20 @@
|
||||
--- a/usb_modeswitch.c 2020-07-10 15:48:03.000000000 +0000
|
||||
+++ b/usb_modeswitch.c 2024-12-09 12:18:10.953574344 +0000
|
||||
@@ -570,7 +570,7 @@
|
||||
/* Get current configuration of default device, note value if Configuration
|
||||
* parameter is set. Also sets active_config
|
||||
*/
|
||||
- currentConfigVal = get_current_config_value(dev);
|
||||
+ currentConfigVal = get_current_config_value();
|
||||
if (Configuration > -1) {
|
||||
SHOW_PROGRESS(output,"Current configuration number is %d\n", currentConfigVal);
|
||||
} else
|
||||
@@ -772,7 +772,7 @@
|
||||
if (Configuration > 0) {
|
||||
if (currentConfigVal != Configuration) {
|
||||
if (switchConfiguration()) {
|
||||
- currentConfigVal = get_current_config_value(dev);
|
||||
+ currentConfigVal = get_current_config_value();
|
||||
if (currentConfigVal == Configuration) {
|
||||
SHOW_PROGRESS(output,"The configuration was set successfully\n");
|
||||
} else {
|
Loading…
x
Reference in New Issue
Block a user