Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 557d1eb5 authored by Myles Watson's avatar Myles Watson
Browse files

AdapterState: Set BLE start timeout to 4 seconds

Some devices need more than two seconds to initialize the
transport, download firmware, and update.

Fixes: 79369424
Test: runtest bluetooth
Change-Id: Ib1d58a32f721b50385f0959f42e7829ef8c92454
(cherry picked from commit 3c745fe42c776e7c58cfc56901ef6dc0b32c99e8)
parent 9e0d2172
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -70,7 +70,7 @@ final class AdapterState extends StateMachine {
    static final int BLE_STOP_TIMEOUT = 11;
    static final int BLE_STOP_TIMEOUT = 11;
    static final int BLE_START_TIMEOUT = 12;
    static final int BLE_START_TIMEOUT = 12;


    static final int BLE_START_TIMEOUT_DELAY = 2000;
    static final int BLE_START_TIMEOUT_DELAY = 4000;
    static final int BLE_STOP_TIMEOUT_DELAY = 1000;
    static final int BLE_STOP_TIMEOUT_DELAY = 1000;
    static final int BREDR_START_TIMEOUT_DELAY = 4000;
    static final int BREDR_START_TIMEOUT_DELAY = 4000;
    static final int BREDR_STOP_TIMEOUT_DELAY = 4000;
    static final int BREDR_STOP_TIMEOUT_DELAY = 4000;