Skip to content

Commit ecc7118

Browse files
committed
BLE - Cordio PAL SM: Implement send_keypress_notification
1 parent 9043714 commit ecc7118

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,10 +382,14 @@ ble_error_t CordioSecurityManager::confirmation_entered(
382382
return BLE_ERROR_NOT_IMPLEMENTED;
383383
}
384384

385+
// FIXME: remove when declaration from the stack is available
386+
extern "C" void DmSecKeypressReq(dmConnId_t connId, uint8_t keypressType);
387+
385388
ble_error_t CordioSecurityManager::send_keypress_notification(
386389
connection_handle_t connection, Keypress_t keypress
387390
) {
388-
return BLE_ERROR_NOT_IMPLEMENTED;
391+
DmSecKeypressReq(connection, keypress);
392+
return BLE_ERROR_NONE;
389393
}
390394

391395
ble_error_t CordioSecurityManager::oob_data_verified(

0 commit comments

Comments
 (0)