configfsisomanager: add missing UDC sysfs read

This commit is contained in:
Nitan Alexandru Marcel
2023-02-01 10:56:46 +00:00
committed by GitHub
parent 9840bc4af2
commit 14e6e09bd4

View File

@@ -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;
}