add timeouts to install script and parameters to pairing

This commit is contained in:
agessaman 2025-10-17 21:10:38 -07:00
parent ff1b1bd8ca
commit d3da26e3db

View file

@ -265,8 +265,9 @@ function Start-Installation {
Write-Host "INFO: Scanning for BLE devices..." -ForegroundColor Blue
try {
# Run the BLE scan helper
# Run the BLE scan helper with delay
$bleScanScript = Join-Path $InstallDir "ble_scan_helper.py"
Write-Host "INFO: This may take 10-15 seconds..." -ForegroundColor Blue
$scanResult = & python $bleScanScript 2>&1
if ($LASTEXITCODE -eq 0 -and $scanResult) {
@ -329,7 +330,7 @@ function Start-Installation {
try {
$blePairingScript = Join-Path $InstallDir "ble_pairing_helper.py"
$pairingResult = & python $blePairingScript $script:SelectedBleDevice 2>&1
$pairingResult = & python $blePairingScript $script:SelectedBleDevice $script:SelectedBleName 2>&1
if ($LASTEXITCODE -eq 0) {
Write-Host "SUCCESS: BLE device paired successfully" -ForegroundColor Green