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

Commit e671457b authored by Prashanth Swaminathan's avatar Prashanth Swaminathan Committed by Gerrit Code Review
Browse files

Merge "Scale stack manager start timeouts with sys prop" into main

parents 01098740 e3497c08
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -99,7 +99,9 @@ std::chrono::milliseconds StackManager::get_gd_stack_timeout_ms(bool is_start) {
  auto gd_timeout = os::GetSystemPropertyUint32(
        is_start ? "bluetooth.gd.start_timeout" : "bluetooth.gd.stop_timeout",
        /* default_value = */ is_start ? 3000 : 5000);
  return std::chrono::milliseconds(gd_timeout);
  return std::chrono::milliseconds(
      gd_timeout * os::GetSystemPropertyUint32("ro.hw_timeout_multiplier",
                                               /* default_value = */ 1));
}

}  // namespace bluetooth