From 7731f17c212d2e4db4e66204629daf5691755a6c Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Wed, 3 Apr 2013 17:55:53 +0200 Subject: [PATCH] Check for long UUID for L2CAP channel just in case --- SPP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPP.cpp b/SPP.cpp index da05b507..aaf449ab 100644 --- a/SPP.cpp +++ b/SPP.cpp @@ -199,7 +199,7 @@ void SPP::ACLData(uint8_t* l2capinbuf) { serialPortResponse2(l2capinbuf[9], l2capinbuf[10]); // Serialport continuation state firstMessage = true; } - } else if ((l2capinbuf[16] << 8 | l2capinbuf[17]) == L2CAP_UUID) { + } else if (((l2capinbuf[16] << 8 | l2capinbuf[17]) == L2CAP_UUID) || ((l2capinbuf[16] << 8 | l2capinbuf[17]) == 0x0000 && (l2capinbuf[18] << 8 | l2capinbuf[19]) == L2CAP_UUID)) { if (firstMessage) { l2capResponse1(l2capinbuf[9], l2capinbuf[10]); firstMessage = false;