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

Commit 8d609d5b authored by Myles Watson's avatar Myles Watson
Browse files

RootCanal: Set the timer period to 1 second

Reduce the CPU overhead of simulating the Bluetooth chip.

Bug: 136503363
Test: enable Bluetooth with RootCanal
Change-Id: I3a783a4d8a46d4eef43ddbace23c672ef9f6d7f9
Merged-In: I609f917061e5d83e011edfeb61de281ff45b13e4
parent 2def54ac
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -142,6 +142,7 @@ Return<void> BluetoothHci::initialize(const sp<IBluetoothHciCallbacks>& cb) {
  test_channel_.AddDeviceToPhy({"1", "0"});
  test_channel_.Add({"beacon", "be:ac:10:00:00:02", "1000"});
  test_channel_.AddDeviceToPhy({"2", "0"});
  test_channel_.SetTimerPeriod({"1000"});

  unlink_cb_ = [cb](sp<BluetoothDeathRecipient>& death_recipient) {
    if (death_recipient->getHasDied())