Set timeout for pin enter to 2 min
This commit is contained in:
@@ -209,7 +209,7 @@ void wivrn::wivrn_connection::init(std::stop_token stop_token, std::function<voi
|
|||||||
// Check the PIN
|
// Check the PIN
|
||||||
crypto::smp pin_check;
|
crypto::smp pin_check;
|
||||||
|
|
||||||
auto msg1 = std::get<from_headset::pin_check_1>(receive(10s).first).message;
|
auto msg1 = std::get<from_headset::pin_check_1>(receive(2min).first).message;
|
||||||
|
|
||||||
auto msg2 = pin_check.step2(msg1, pin);
|
auto msg2 = pin_check.step2(msg1, pin);
|
||||||
control.send(to_headset::pin_check_2{msg2});
|
control.send(to_headset::pin_check_2{msg2});
|
||||||
|
|||||||
Reference in New Issue
Block a user