Skip to content

Commit 81e57fe

Browse files
committed
fix(HCI): missing LE_Event_Mask
Linked to: arduino-libraries#310 Signed-off-by: Frederic Pillon <[email protected]>
1 parent b4c0bf4 commit 81e57fe

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/utility/HCI.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ void HCIClass::handleEventPkt(uint8_t /*plen*/, uint8_t pdata[])
993993
Serial.println(leMetaHeader->subevent,HEX);
994994
#endif
995995
switch((LE_META_EVENT)leMetaHeader->subevent){
996-
case 0x0A:{
996+
case ENHANCED_CONN_COMPLETE:{
997997
struct __attribute__ ((packed)) EvtLeConnectionComplete {
998998
uint8_t status;
999999
uint16_t handle;

src/utility/HCI.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ enum LE_META_EVENT {
4646
LONG_TERM_KEY_REQUEST = 0x05,
4747
REMOTE_CONN_PARAM_REQ = 0x06,
4848
READ_LOCAL_P256_COMPLETE = 0x08,
49-
GENERATE_DH_KEY_COMPLETE = 0x09
49+
GENERATE_DH_KEY_COMPLETE = 0x09,
50+
ENHANCED_CONN_COMPLETE = 0x0A,
5051
};
5152
String metaEventToString(LE_META_EVENT event);
5253
String commandToString(LE_COMMAND command);

0 commit comments

Comments
 (0)