From 37090f65b7027b1bfec8b29676c49af74a1ad1fe Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Sat, 15 Jun 2013 17:47:48 +0200 Subject: [PATCH 1/2] Can now print unknown PDU --- SPP.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SPP.cpp b/SPP.cpp index ff12d0b5..05eea43f 100644 --- a/SPP.cpp +++ b/SPP.cpp @@ -229,6 +229,12 @@ void SPP::ACLData(uint8_t* l2capinbuf) { } #endif } +#ifdef EXTRADEBUG + else { + Notify(PSTR("\r\nUnknown PDU: ")); + PrintHex (l2capinbuf[8], 0x80); + } +#endif } else if (l2capinbuf[6] == rfcomm_dcid[0] && l2capinbuf[7] == rfcomm_dcid[1]) { // RFCOMM rfcommChannel = l2capinbuf[8] & 0xF8; rfcommDirection = l2capinbuf[8] & 0x04; From aca72fe57a6450ffae9dabe8c0400dec565cccaf Mon Sep 17 00:00:00 2001 From: "Andrew J. Kroll" Date: Mon, 17 Jun 2013 00:54:16 -0400 Subject: [PATCH 2/2] Merge branches 'master' and 'master' of github.com:felis/USB_Host_Shield_2.0