SerialTerminalForWindowsTerminal icon indicating copy to clipboard operation
SerialTerminalForWindowsTerminal copied to clipboard

con't set baudrate to 8000000

Open Roomen opened this issue 1 year ago • 1 comments

I want use baudrate 8000000, but error.

Caught panic:

runtime error: index out of range [0] with length 0

Restoring terminal...

goroutine 1 [running]:
runtime/debug.Stack()
        C:/Users/lydxh/scoop/apps/go/current/src/runtime/debug/stack.go:24 +0x5e
runtime/debug.PrintStack()
        C:/Users/lydxh/scoop/apps/go/current/src/runtime/debug/stack.go:16 +0x13
github.com/charmbracelet/bubbletea.(*Program).Run.func1()
        C:/Users/lydxh/go/pkg/mod/github.com/charmbracelet/[email protected]/tea.go:478 +0x91
panic({0x17f1ee0?, 0xc0003aa138?})
        C:/Users/lydxh/scoop/apps/go/current/src/runtime/panic.go:770 +0x132
github.com/fzdwx/infinite/components.(*Selection).choice(0x175d6c0?)
        C:/Users/lydxh/go/pkg/mod/github.com/fzdwx/[email protected]/components/selection.go:469 +0x116
github.com/fzdwx/infinite/components.(*Selection).Update(0xc0000e2008, {0x17c7c60?, 0xc000386810?})
        C:/Users/lydxh/go/pkg/mod/github.com/fzdwx/[email protected]/components/selection.go:252 +0x20df
github.com/charmbracelet/bubbletea.(*Program).eventLoop(0xc000042c30, {0x19e8b20?, 0xc0000e2008?}, 0xc00003c2a0)
        C:/Users/lydxh/go/pkg/mod/github.com/charmbracelet/[email protected]/tea.go:411 +0x5e2
github.com/charmbracelet/bubbletea.(*Program).Run(0xc000042c30)
        C:/Users/lydxh/go/pkg/mod/github.com/charmbracelet/[email protected]/tea.go:543 +0x88b
github.com/fzdwx/infinite/components.(*StartUp).Run(...)
        C:/Users/lydxh/go/pkg/mod/github.com/fzdwx/[email protected]/components/startup.go:36
github.com/fzdwx/infinite/components/selection/multiselect.(*Select).Display(0xc000046a90, {0xc000139d10?, 0xc000094008?, 0xc000046a90?})
        C:/Users/lydxh/go/pkg/mod/github.com/fzdwx/[email protected]/components/selection/multiselect/multi_select.go:31 +0xaa
github.com/fzdwx/infinite/components/selection/singleselect.(*Select).Display(0x22308a0?, {0xc000139d10?, 0x1?, 0xc000139b58?})
        C:/Users/lydxh/go/pkg/mod/github.com/fzdwx/[email protected]/components/selection/singleselect/single_select.go:25 +0x1b
main.getCliFlag()
        C:/Users/lydxh/GolandProjects/COM/flag.go:181 +0xe0c
main.main()
        C:/Users/lydxh/GolandProjects/COM/main.go:132 +0xa9
panic: runtime error: index out of range [-1]

goroutine 1 [running]:
main.getCliFlag()
        C:/Users/lydxh/GolandProjects/COM/flag.go:183 +0x1fed
main.main()
        C:/Users/lydxh/GolandProjects/COM/main.go:132 +0xa9

Roomen avatar Jun 14 '24 07:06 Roomen

Version and execute arguments.

jixishi avatar Jul 29 '24 06:07 jixishi

You did not choose custom settings. After selecting, the following information appears: enter your baud rate. image

jixishi avatar Oct 17 '24 14:10 jixishi