mirror of
https://github.com/hyblocker/OpenVR-SpaceCalibrator.git
synced 2026-10-17 14:00:45 +02:00
fix: fine tune BLE params for windows to be more deterministic
This commit is contained in:
1 file changed
+3
-3
@@ -874,9 +874,9 @@ namespace bluetooth {
|
||||
}
|
||||
|
||||
// the LE_SCAN_REQUEST struct varies across windows version so fuck it try all of them lmao
|
||||
LE_SCAN_REQUEST_WIN11 scanReqWin11 = { .scan_type = 0, .scan_window = 29, .scan_interval = 29 };
|
||||
LE_SCAN_REQUEST_WIN10 scanReqWin10 = { .scan_type = 0, .scan_window = 29, .scan_interval = 29 };
|
||||
LE_SCAN_REQUEST_ORIG scanReqLegacy = { .scan_type = 0, .scan_window = 29, .scan_interval = 29 };
|
||||
LE_SCAN_REQUEST_WIN11 scanReqWin11 = { .scan_type = 1, .scan_window = 160, .scan_interval = 160 };
|
||||
LE_SCAN_REQUEST_WIN10 scanReqWin10 = { .scan_type = 1, .scan_window = 160, .scan_interval = 160 };
|
||||
LE_SCAN_REQUEST_ORIG scanReqLegacy = { .scan_type = 1, .scan_window = 160, .scan_interval = 160 };
|
||||
|
||||
if (!_try_scan_device_io_control(hBtRadio, ov, &scanReqWin11, sizeof(scanReqWin11))) {
|
||||
if (!_try_scan_device_io_control(hBtRadio, ov, &scanReqWin10, sizeof(scanReqWin10))) {
|
||||
|
||||
Reference in new issue
Block a user