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:
committed by
GitHub
parent
9840bc4af2
commit
14e6e09bd4
@@ -24,7 +24,7 @@ char *get_gadget_root()
|
||||
if (entry->d_name[0] != '.')
|
||||
{
|
||||
gadgetRoot = strjin(usbGadgetRoot, entry->d_name);
|
||||
udc = strjin(gadgetRoot, "/UDC");
|
||||
udc = sysfs_read(strjin(gadgetRoot, "/UDC"));
|
||||
if (strcmp(udc, getprop("sys.usb.controller")) == 1)
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user