mirror of
https://github.com/wisplite/parchment.git
synced 2026-06-27 13:47:08 -05:00
upload page added + parchment properly waits for ack command
This commit is contained in:
@@ -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, ¤tFrame, state)
|
||||
frame := AppUI(app, ¤tFrame, state, device)
|
||||
currentFrame = frame
|
||||
app.SetRoot(frame, true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user