Skip to content

Commit 33348de

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

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/utility/HCI.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ String metaEventToString(LE_META_EVENT event)
8282
case LONG_TERM_KEY_REQUEST: return F("LE_LONG_TERM_KEY_REQUEST");
8383
case READ_LOCAL_P256_COMPLETE: return F("READ_LOCAL_P256_COMPLETE");
8484
case GENERATE_DH_KEY_COMPLETE: return F("GENERATE_DH_KEY_COMPLETE");
85+
case ENHANCED_CONN_COMPLETE: return F("ENHANCED_CONN_COMPLETE");
8586
default: return "event unknown";
8687
}
8788
}
@@ -990,7 +991,7 @@ void HCIClass::handleEventPkt(uint8_t /*plen*/, uint8_t pdata[])
990991
Serial.println(leMetaHeader->subevent,HEX);
991992
#endif
992993
switch((LE_META_EVENT)leMetaHeader->subevent){
993-
case 0x0A:{
994+
case ENHANCED_CONN_COMPLETE:{
994995
struct __attribute__ ((packed)) EvtLeConnectionComplete {
995996
uint8_t status;
996997
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)