mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 19:55:33 -04:00
universal7885: usb: Add missing moisture detection
* CCIC=DRY is used if there's no more moisture detected Change-Id: I48f2e34c027bb5967dade435f6e7840ad05c71c2
This commit is contained in:
parent
3aff7935f2
commit
611d983e85
1 changed files with 2 additions and 1 deletions
|
|
@ -677,7 +677,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, ¤tPortStatus_1_2);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue