upload page added + parchment properly waits for ack command

This commit is contained in:
2026-01-30 06:18:25 -06:00
parent f5a688e741
commit 073b78bcb3
3 changed files with 95 additions and 17 deletions
+2 -1
View File
@@ -35,6 +35,7 @@ func MonitorDevice(ctx context.Context, app *tview.Application, frame **tview.Fr
err = device.Connect()
if err != nil {
UpdateDeviceStatus(app, *frame, state, "Error connecting to cardputer: "+err.Error(), tcell.ColorRed)
SetError(state, err.Error())
} else {
UpdateDeviceStatus(app, *frame, state, "Connected to cardputer: "+port, tcell.ColorGreen)
if state.Error == "Cardputer disconnected" {
@@ -69,7 +70,7 @@ func main() {
Page: "home",
Error: "",
}
frame := AppUI(app, &currentFrame, state)
frame := AppUI(app, &currentFrame, state, device)
currentFrame = frame
app.SetRoot(frame, true)