Skip to content

Commit 36247b3

Browse files
committed
BLE - Cordio PAL SM: Implement Keypress notification
1 parent 56af3cb commit 36247b3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalSecurityManager.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,15 @@ bool CordioSecurityManager::sm_handler(const wsfMsgHdr_t* msg) {
600600
case DM_SEC_COMPARE_IND:
601601
return true;
602602

603-
case DM_SEC_KEYPRESS_IND:
603+
case DM_SEC_KEYPRESS_IND: {
604+
dmSecKeypressIndEvt_t* evt = (dmSecKeypressIndEvt_t*) msg;
605+
606+
handler->on_keypress_notification(
607+
/* connection */ evt->hdr.param,
608+
(Keypress_t) evt->notificationType
609+
);
604610
return true;
611+
}
605612

606613
default:
607614
return false;

0 commit comments

Comments
 (0)