mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-05 21:59:45 +00:00
set state before notifying user
This commit is contained in:
parent
54ed2ecaf7
commit
22f6379b3a
2
ble/sm.c
2
ble/sm.c
@ -1438,8 +1438,8 @@ static void sm_handle_random_result(uint8_t * data){
|
||||
if (connection->sm_role){
|
||||
connection->sm_engine_state = SM_RESPONDER_PH1_SEND_PAIRING_RESPONSE;
|
||||
} else {
|
||||
sm_trigger_user_response();
|
||||
connection->sm_engine_state = SM_PH1_W4_USER_RESPONSE;
|
||||
sm_trigger_user_response();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user