Skip to content

Commit b6bb098

Browse files
committed
Remove no more used 'Busy' field
1 parent a7d97e7 commit b6bb098

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

upload/upload.go

-6
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ import (
3030
"go.bug.st/serial/enumerator"
3131
)
3232

33-
// Busy tells wether the programmer is doing something
34-
var Busy = false
35-
3633
// Extra contains some options used during the upload
3734
type Extra struct {
3835
Use1200bpsTouch bool `json:"use_1200bps_touch"`
@@ -81,9 +78,6 @@ func fixupPort(port, commandline string) string {
8178

8279
// Serial performs a serial upload
8380
func Serial(port, commandline string, extra Extra, l Logger) error {
84-
Busy = true
85-
defer func() { Busy = false }()
86-
8781
// some boards needs to be resetted
8882
if extra.Use1200bpsTouch {
8983
var err error

0 commit comments

Comments
 (0)