INITIALIZE_DISABLE.ps1 381 B

12345678910111213
  1. param(
  2. [string]$Port = "COM5",
  3. [int]$Baud = 921600
  4. )
  5. Set-StrictMode -Version Latest
  6. $ErrorActionPreference = "Stop"
  7. $root = Split-Path -Parent $MyInvocation.MyCommand.Path
  8. & powershell.exe -NoProfile -ExecutionPolicy Bypass -File (Join-Path $root "SEND_HEX.ps1") `
  9. -Port $Port `
  10. -Baud $Baud `
  11. -Hex "A55A02040500000000000000000426000000C4AE"
  12. exit $LASTEXITCODE