Skip to content

Commit

Permalink
fix(main): wait 100msec after sending STP
Browse files Browse the repository at this point in the history
  • Loading branch information
takuo committed Jan 7, 2024
1 parent 2a9991b commit c123277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ func (c *Chissoku) cleanup() {
slog.Debug("Closing Serial port")
// nolint: errcheck
c.port.Write([]byte(CommandSTP + "\r\n"))
time.Sleep(time.Millisecond * 100)
// nolint: errcheck
c.port.Close()
}
time.Sleep(time.Millisecond * 100)
for _, v := range c.Options.Output {
c.outputters[v].Close()
}
Expand Down

0 comments on commit c123277

Please sign in to comment.