mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Check for long UUID for L2CAP channel just in case
This commit is contained in:
parent
4122764d81
commit
7731f17c21
1 changed files with 1 additions and 1 deletions
2
SPP.cpp
2
SPP.cpp
|
@ -199,7 +199,7 @@ void SPP::ACLData(uint8_t* l2capinbuf) {
|
|||
serialPortResponse2(l2capinbuf[9], l2capinbuf[10]); // Serialport continuation state
|
||||
firstMessage = true;
|
||||
}
|
||||
} else if ((l2capinbuf[16] << 8 | l2capinbuf[17]) == L2CAP_UUID) {
|
||||
} else if (((l2capinbuf[16] << 8 | l2capinbuf[17]) == L2CAP_UUID) || ((l2capinbuf[16] << 8 | l2capinbuf[17]) == 0x0000 && (l2capinbuf[18] << 8 | l2capinbuf[19]) == L2CAP_UUID)) {
|
||||
if (firstMessage) {
|
||||
l2capResponse1(l2capinbuf[9], l2capinbuf[10]);
|
||||
firstMessage = false;
|
||||
|
|
Loading…
Reference in a new issue