mirror of
https://github.com/nitanmarcel/isodrive.git
synced 2026-03-13 04:17:24 +00:00
configfsisomanager: add missing UDC sysfs read
This commit is contained in:
@@ -24,7 +24,7 @@ char *get_gadget_root()
|
|||||||
if (entry->d_name[0] != '.')
|
if (entry->d_name[0] != '.')
|
||||||
{
|
{
|
||||||
gadgetRoot = strjin(usbGadgetRoot, entry->d_name);
|
gadgetRoot = strjin(usbGadgetRoot, entry->d_name);
|
||||||
udc = strjin(gadgetRoot, "/UDC");
|
udc = sysfs_read(strjin(gadgetRoot, "/UDC"));
|
||||||
if (strcmp(udc, getprop("sys.usb.controller")) == 1)
|
if (strcmp(udc, getprop("sys.usb.controller")) == 1)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user