mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +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){
|
if (connection->sm_role){
|
||||||
connection->sm_engine_state = SM_RESPONDER_PH1_SEND_PAIRING_RESPONSE;
|
connection->sm_engine_state = SM_RESPONDER_PH1_SEND_PAIRING_RESPONSE;
|
||||||
} else {
|
} else {
|
||||||
sm_trigger_user_response();
|
|
||||||
connection->sm_engine_state = SM_PH1_W4_USER_RESPONSE;
|
connection->sm_engine_state = SM_PH1_W4_USER_RESPONSE;
|
||||||
|
sm_trigger_user_response();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user