Diff between f1c52234b722ba5b86230678c43fc707a9f9e5b7 and e9b99f6a20e2b6af67ff6684c3562f9534c41fcf
Changed Files
| File | Additions | Deletions | Status |
| android/hidhost.c | +1 | -1 | modified |
Full Patch
diff --git a/android/hidhost.c b/android/hidhost.c
index 75e895b..b696563 100644
--- a/android/hidhost.c
+++ b/android/hidhost.c
@@ -465,7 +465,7 @@ static gboolean ctrl_io_watch_cb(GIOChannel *chan, gpointer data)
bt_hid_notify_handshake(dev, buf, bread);
break;
case HID_MSG_CONTROL:
- if ((buf[0] & !HID_MSG_TYPE_MASK) == HID_VIRTUAL_CABLE_UNPLUG)
+ if ((buf[0] & ~HID_MSG_TYPE_MASK) == HID_VIRTUAL_CABLE_UNPLUG)
bt_hid_notify_virtual_unplug(dev, buf, bread);
break;
default: