From 37090f65b7027b1bfec8b29676c49af74a1ad1fe Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Sat, 15 Jun 2013 17:47:48 +0200 Subject: [PATCH] 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;