File tree Expand file tree Collapse file tree 1 file changed +6
-24
lines changed Expand file tree Collapse file tree 1 file changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,12 @@ import (
3131)
3232
3333var (
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
4140)
4241
4342// NewCommand created a new `upload` command
@@ -74,23 +73,6 @@ func run(command *cobra.Command, args []string) {
7473 }
7574 sketchPath := initSketchPath (path )
7675
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-
9476 if _ , err := upload .Upload (context .Background (), & rpc.UploadReq {
9577 Instance : instance ,
9678 Fqbn : fqbn ,
You can’t perform that action at this time.
0 commit comments