mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-15 02:36:12 -04:00
Low latency scan mode by default for better user experience.
This commit is contained in:
@@ -28,7 +28,7 @@ class BleScanner @Inject constructor(
|
||||
|
||||
fun scan(
|
||||
filter: Set<ScanFilter> = ProximityPairing.getBleScanFilter(),
|
||||
mode: Int = ScanSettings.SCAN_MODE_BALANCED,
|
||||
mode: Int = ScanSettings.SCAN_MODE_LOW_LATENCY,
|
||||
): Flow<List<BleScanResult>> = callbackFlow {
|
||||
val adapter = bluetoothManager.adapter
|
||||
val scanner = bluetoothManager.scanner
|
||||
|
||||
@@ -29,7 +29,7 @@ class GeneralSettings @Inject constructor(
|
||||
|
||||
val scannerMode = preferences.createFlowPreference(
|
||||
"core.scanner.mode",
|
||||
ScannerMode.BALANCED,
|
||||
ScannerMode.LOW_LATENCY,
|
||||
moshi
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user