mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-10 06:44:32 +00:00
pts/sm_test: also simulate incorrect passkey entry
This commit is contained in:
parent
1a9063585d
commit
45a7413e73
@ -322,6 +322,9 @@ static void stdin_process(char c){
|
|||||||
printf("\n");
|
printf("\n");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
sm_keypress_notification(connection_handle, SM_KEYPRESS_PASSKEY_ENTRY_COMPLETED);
|
sm_keypress_notification(connection_handle, SM_KEYPRESS_PASSKEY_ENTRY_COMPLETED);
|
||||||
|
if (sm_failure == SM_REASON_PASSKEY_ENTRY_FAILED){
|
||||||
|
ui_passkey--;
|
||||||
|
}
|
||||||
sm_passkey_input(connection_handle, ui_passkey);
|
sm_passkey_input(connection_handle, ui_passkey);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user