From 60ef04d32f1e0b12e92b53627e3b32679655b98f Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Mon, 8 Apr 2013 00:22:15 +0200 Subject: [PATCH] Always print incoming SDP data if EXTRADEBUG is uncommented --- SPP.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SPP.cpp b/SPP.cpp index 08502877..1f6e269c 100644 --- a/SPP.cpp +++ b/SPP.cpp @@ -207,7 +207,9 @@ void SPP::ACLData(uint8_t* l2capinbuf) { l2capResponse2(l2capinbuf[9], l2capinbuf[10]); // L2CAP continuation state firstMessage = true; } - } else { + } else + serviceNotSupported(l2capinbuf[9], l2capinbuf[10]); // The service is not supported + #ifdef EXTRADEBUG Notify(PSTR("\r\nUUID: "), 0x80); uint16_t uuid; @@ -226,8 +228,6 @@ void SPP::ACLData(uint8_t* l2capinbuf) { Notify(PSTR(" "), 0x80); } #endif - serviceNotSupported(l2capinbuf[9], l2capinbuf[10]); // The service is not supported - } } } else if (l2capinbuf[6] == rfcomm_dcid[0] && l2capinbuf[7] == rfcomm_dcid[1]) { // RFCOMM rfcommChannel = l2capinbuf[8] & 0xF8;