From aac7c55133b36ea207406068cf310cbab5260f14 Mon Sep 17 00:00:00 2001 From: Ravi kumar Veeramally Date: Tue, 5 Nov 2013 23:09:15 +0200 Subject: [PATCH] android/hid: Replace header checking magic number with defines --- android/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/hid.c b/android/hid.c index 5411922f9..999f5d677 100644 --- a/android/hid.c +++ b/android/hid.c @@ -200,7 +200,7 @@ static gboolean intr_io_watch_cb(GIOChannel *chan, gpointer data) } /* Discard non-data packets */ - if (bread == 0 || buf[0] != 0xA1) + if (bread == 0 || buf[0] != (HID_MSG_DATA | HID_DATA_TYPE_INPUT)) return TRUE; /* send data to uHID device skipping HIDP header byte */ -- 2.47.3