summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2021-04-26 10:00:15 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-04-26 10:00:15 +0000
commit14d9a90c0560a1c21fe4be886ab3a45707832129 (patch)
tree7b5273ae2e3f3f194ded33505b27ae1a655fb77d
parent4d4f1a455cc8126cb1b74b6b0aad39e7cb4adecf (diff)
parent9d3491c96cf4cadc48253a7113a26c80fcb7cdf2 (diff)
downloadredfin-14d9a90c0560a1c21fe4be886ab3a45707832129.tar.gz
Merge "redfin: usb: add state of usb extcon to monitorffs" into sc-dev
-rw-r--r--usb/UsbGadget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usb/UsbGadget.h b/usb/UsbGadget.h
index 93c7d66..32b173f 100644
--- a/usb/UsbGadget.h
+++ b/usb/UsbGadget.h
@@ -66,7 +66,8 @@ using ::android::hardware::usb::gadget::V1_1::IUsbGadget;
using ::std::string;
constexpr char kGadgetName[] = "a600000.dwc3";
-static MonitorFfs monitorFfs(kGadgetName);
+constexpr char kExtconUsbState[] = "/sys/class/extcon/extcon4/cable.0/state";
+static MonitorFfs monitorFfs(kGadgetName, kExtconUsbState);
struct UsbGadget : public IUsbGadget {
UsbGadget();