Skip to content

Commit

Permalink
remove useless variables
Browse files Browse the repository at this point in the history
  • Loading branch information
SydneyOwl committed Jan 5, 2024
1 parent 189059f commit ec2e96e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
4 changes: 3 additions & 1 deletion entrance/gui/gui_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ func doGuiShutup() {
func doRestart() {
defer doGuiShutup()
exePath, _ := os.Executable()
go exec.Command(exePath, os.Args...).Run()
go func() {
_ = exec.Command(exePath, os.Args...).Run()
}()
time.Sleep(time.Second * 2)
}
12 changes: 0 additions & 12 deletions internal/serial_tool/states.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,6 @@ var (
BAUDRATE = 9600
)

const (
HandShakeStep1 = iota
HandShakeStep2
HandShakeStep3
HandShakeStep4
ReadStep1
ReadStep2
ReadStep3
WriteStep1
WriteStep
)

var connected = false

func SetConnectedStatus(stat bool) {
Expand Down

0 comments on commit ec2e96e

Please sign in to comment.