set state before notifying user

This commit is contained in:
matthias.ringwald@gmail.com 2014-09-05 14:59:16 +00:00
parent 54ed2ecaf7
commit 22f6379b3a

View File

@ -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;
}