mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Can now print unknown PDU
This commit is contained in:
parent
124899d2ee
commit
37090f65b7
1 changed files with 6 additions and 0 deletions
6
SPP.cpp
6
SPP.cpp
|
@ -229,6 +229,12 @@ void SPP::ACLData(uint8_t* l2capinbuf) {
|
||||||
}
|
}
|
||||||
#endif
|
#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
|
} else if (l2capinbuf[6] == rfcomm_dcid[0] && l2capinbuf[7] == rfcomm_dcid[1]) { // RFCOMM
|
||||||
rfcommChannel = l2capinbuf[8] & 0xF8;
|
rfcommChannel = l2capinbuf[8] & 0xF8;
|
||||||
rfcommDirection = l2capinbuf[8] & 0x04;
|
rfcommDirection = l2capinbuf[8] & 0x04;
|
||||||
|
|
Loading…
Reference in a new issue