diff --git a/features/FEATURE_BLE/ble/SecurityManager.h b/features/FEATURE_BLE/ble/SecurityManager.h index 7052e2faae..f13f53e39a 100644 --- a/features/FEATURE_BLE/ble/SecurityManager.h +++ b/features/FEATURE_BLE/ble/SecurityManager.h @@ -336,7 +336,14 @@ public: // Security settings // - virtual ble_error_t setPasskey(const Passkey_t passkey) { + /** + * Set the passkey that is displayed on the local device instead of using + * a randomly generated one + * + * @param passkey asci string of 6 digits + * @return + */ + virtual ble_error_t setDisplayPasskey(const Passkey_t passkey) { (void) passkey; return BLE_ERROR_NOT_IMPLEMENTED; /* Requesting action from porters: override this API if security is supported. */ } diff --git a/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp b/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp index b9a1056135..5ff1d32dba 100644 --- a/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp +++ b/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp @@ -63,9 +63,6 @@ public: passkey -= result; } } - PasskeyAsci& operator=(PasskeyNum& passkey) { - return PasskeyAsci(passkey); - } operator PasskeyNum() { return PasskeyNum(getNumber()); }