feat: unify companion builds and USB runtime modes

This commit is contained in:
mikecarper committed 2026-08-27 15:06:26 -07:00
1 parent 69ded9d6c7
commit 1d836c0473
31 files changed
+1425 -131

No files matched your search

+2 -2
View File
@@ -177,7 +177,7 @@ function Enter-CompanionTerminalMode {
param([Parameter(Mandatory)][System.IO.Ports.SerialPort]$Port)
try { $Port.DiscardInBuffer() } catch { }
$Port.Write($script:StartToken)
$Port.Write($script:StartToken + "`r")
# Do not render Binary Companion frames as console control characters while
# the device changes modes. Start displaying once the text banner arrives.
@@ -367,7 +367,7 @@ function Start-TerminalSession {
for ($index = 0; $index -lt $lineCharacterCount; $index++) {
$port.Write([string][char]8)
}
$port.Write($script:StopToken)
$port.Write($script:StopToken + "`r")
Start-Sleep -Milliseconds 150
}
catch {