Skip to content

Commit 57e9bd9

Browse files
committed
Remove no more used 'Busy' field
1 parent aba64eb commit 57e9bd9

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"`
@@ -82,9 +79,6 @@ func fixupPort(port, commandline string) string {
8279

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

0 commit comments

Comments
 (0)