File tree 1 file changed +6
-24
lines changed
1 file changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,12 @@ import (
31
31
)
32
32
33
33
var (
34
- fqbn string
35
- port string
36
- verbose bool
37
- verify bool
38
- importDir string
39
- programmer string
40
- burnBootloader bool
34
+ fqbn string
35
+ port string
36
+ verbose bool
37
+ verify bool
38
+ importDir string
39
+ programmer string
41
40
)
42
41
43
42
// NewCommand created a new `upload` command
@@ -74,23 +73,6 @@ func run(command *cobra.Command, args []string) {
74
73
}
75
74
sketchPath := initSketchPath (path )
76
75
77
- if burnBootloader {
78
- if _ , err := upload .Upload (context .Background (), & rpc.UploadReq {
79
- Instance : instance ,
80
- Fqbn : fqbn ,
81
- SketchPath : sketchPath .String (),
82
- Port : port ,
83
- Verbose : verbose ,
84
- Verify : verify ,
85
- ImportDir : importDir ,
86
- Programmer : programmer ,
87
- }, os .Stdout , os .Stderr ); err != nil {
88
- feedback .Errorf ("Error during Upload: %v" , err )
89
- os .Exit (errorcodes .ErrGeneric )
90
- }
91
- os .Exit (0 )
92
- }
93
-
94
76
if _ , err := upload .Upload (context .Background (), & rpc.UploadReq {
95
77
Instance : instance ,
96
78
Fqbn : fqbn ,
You can’t perform that action at this time.
0 commit comments