hidl: usb: Add missing moisture detection uevent

* CCIC=DRY is used if there's no more moisture detected

Change-Id: I48f2e34c027bb5967dade435f6e7840ad05c71c2
tirimbino
Tim Zimmermann 2 years ago
parent 428bd3e7fe
commit f4fa0359d4
No known key found for this signature in database
GPG Key ID: 6DC21A63F819C5EF
  1. 3
      hidl/usb/Usb.cpp

@ -646,7 +646,8 @@ static void uevent_event(uint32_t /*epevents*/, struct data *payload) {
pthread_cond_signal(&payload->usb->mPartnerCV);
pthread_mutex_unlock(&payload->usb->mPartnerLock);
} else if (!strncmp(cp, "DEVTYPE=typec_", strlen("DEVTYPE=typec_")) ||
!strncmp(cp, "CCIC=WATER", strlen("CCIC=WATER"))) {
!strncmp(cp, "CCIC=WATER", strlen("CCIC=WATER")) ||
!strncmp(cp, "CCIC=DRY", strlen("CCIC=DRY"))) {
hidl_vec<PortStatus> currentPortStatus_1_2;
queryVersionHelper(payload->usb, &currentPortStatus_1_2);

Loading…
Cancel
Save