BLE - Cordio PAL SM: Implement Keypress notification

pull/6188/head
Vincent Coubard 2018-03-01 14:58:01 +00:00
parent 56af3cb1be
commit 36247b32b8
1 changed files with 8 additions and 1 deletions

View File

@ -600,8 +600,15 @@ bool CordioSecurityManager::sm_handler(const wsfMsgHdr_t* msg) {
case DM_SEC_COMPARE_IND:
return true;
case DM_SEC_KEYPRESS_IND:
case DM_SEC_KEYPRESS_IND: {
dmSecKeypressIndEvt_t* evt = (dmSecKeypressIndEvt_t*) msg;
handler->on_keypress_notification(
/* connection */ evt->hdr.param,
(Keypress_t) evt->notificationType
);
return true;
}
default:
return false;