Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 95ce2e1

Browse files
author
Paolo Calao
authored
Merge pull request #95 from RobertVS-MS/invalid-opcode-failure
PDU rejected due to wrong opcode set in 'Request Opcode In Error'
2 parents 1768462 + 4e5dccd commit 95ce2e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/utility/ATT.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ void ATTClass::findByTypeReq(uint16_t connectionHandle, uint16_t mtu, uint8_t dl
756756
} *findByTypeReq = (FindByTypeReq*)data;
757757

758758
if (dlen < sizeof(FindByTypeReq)) {
759-
sendError(connectionHandle, ATT_OP_FIND_BY_TYPE_RESP, findByTypeReq->startHandle, ATT_ECODE_INVALID_PDU);
759+
sendError(connectionHandle, ATT_OP_FIND_BY_TYPE_REQ, findByTypeReq->startHandle, ATT_ECODE_INVALID_PDU);
760760
return;
761761
}
762762

@@ -794,7 +794,7 @@ void ATTClass::findByTypeReq(uint16_t connectionHandle, uint16_t mtu, uint8_t dl
794794
}
795795

796796
if (responseLength == 1) {
797-
sendError(connectionHandle, ATT_OP_FIND_BY_TYPE_RESP, findByTypeReq->startHandle, ATT_ECODE_ATTR_NOT_FOUND);
797+
sendError(connectionHandle, ATT_OP_FIND_BY_TYPE_REQ, findByTypeReq->startHandle, ATT_ECODE_ATTR_NOT_FOUND);
798798
} else {
799799
HCI.sendAclPkt(connectionHandle, ATT_CID, responseLength, response);
800800
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /