Return-Path: From: Ravi kumar Veeramally To: linux-bluetooth@vger.kernel.org Cc: Ravi kumar Veeramally Subject: [PATCH_v2 10/13] android/hid: Replace header checking magic number with defines Date: Tue, 5 Nov 2013 13:38:12 +0200 Message-Id: <1383651495-12434-11-git-send-email-ravikumar.veeramally@linux.intel.com> In-Reply-To: <1383651495-12434-1-git-send-email-ravikumar.veeramally@linux.intel.com> References: <1383651495-12434-1-git-send-email-ravikumar.veeramally@linux.intel.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- android/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/hid.c b/android/hid.c index 25e33fa..d3a74b9 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 */ -- 1.8.1.2