mirror of https://github.com/ARMmbed/mbed-os.git
BLE - Cordio PAL SM: Implement Keypress notification
parent
56af3cb1be
commit
36247b32b8
|
@ -600,8 +600,15 @@ bool CordioSecurityManager::sm_handler(const wsfMsgHdr_t* msg) {
|
||||||
case DM_SEC_COMPARE_IND:
|
case DM_SEC_COMPARE_IND:
|
||||||
return true;
|
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;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue