diff --git a/src/ble/sm.c b/src/ble/sm.c index bcf5a5ffe..96739ad94 100644 --- a/src/ble/sm.c +++ b/src/ble/sm.c @@ -3724,7 +3724,7 @@ static void sm_pdu_handler(uint8_t packet_type, hci_con_handle_t con_handle, uin // handle user cancel pairing? if (setup->sm_user_response == SM_USER_RESPONSE_DECLINE){ - setup->sm_pairing_failed_reason = SM_REASON_PASSKEYT_ENTRY_FAILED; + setup->sm_pairing_failed_reason = SM_REASON_PASSKEY_ENTRY_FAILED; sm_conn->sm_engine_state = SM_GENERAL_SEND_PAIRING_FAILED; break; } diff --git a/src/bluetooth.h b/src/bluetooth.h index 9841f22f5..f61299e1d 100644 --- a/src/bluetooth.h +++ b/src/bluetooth.h @@ -1200,7 +1200,7 @@ typedef enum { // Pairing Failed Reasons #define SM_REASON_RESERVED 0x00 -#define SM_REASON_PASSKEYT_ENTRY_FAILED 0x01 +#define SM_REASON_PASSKEY_ENTRY_FAILED 0x01 #define SM_REASON_OOB_NOT_AVAILABLE 0x02 #define SM_REASON_AUTHENTHICATION_REQUIREMENTS 0x03 #define SM_REASON_CONFIRM_VALUE_FAILED 0x04 @@ -1224,4 +1224,4 @@ typedef enum { #define SM_KEYPRESS_PASSKEY_ENTRY_COMPLETED 0x04 -#endif \ No newline at end of file +#endif