Can now print unknown PDU

This commit is contained in:
Kristian Sloth Lauszus 2013-06-15 17:47:48 +02:00
parent 124899d2ee
commit 37090f65b7

View file

@ -229,6 +229,12 @@ void SPP::ACLData(uint8_t* l2capinbuf) {
}
#endif
}
#ifdef EXTRADEBUG
else {
Notify(PSTR("\r\nUnknown PDU: "));
PrintHex<uint8_t > (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;