Unverified Commit 08a60429 authored by Cristian Maglie's avatar Cristian Maglie Committed by GitHub

[skip-changelog] Removed leftover from legacy --burn-bootloader flag (#935)

parent ef57e49b
......@@ -31,13 +31,12 @@ import (
)
var (
fqbn string
port string
verbose bool
verify bool
importDir string
programmer string
burnBootloader bool
fqbn string
port string
verbose bool
verify bool
importDir string
programmer string
)
// NewCommand created a new `upload` command
......@@ -74,23 +73,6 @@ func run(command *cobra.Command, args []string) {
}
sketchPath := initSketchPath(path)
if burnBootloader {
if _, err := upload.Upload(context.Background(), &rpc.UploadReq{
Instance: instance,
Fqbn: fqbn,
SketchPath: sketchPath.String(),
Port: port,
Verbose: verbose,
Verify: verify,
ImportDir: importDir,
Programmer: programmer,
}, os.Stdout, os.Stderr); err != nil {
feedback.Errorf("Error during Upload: %v", err)
os.Exit(errorcodes.ErrGeneric)
}
os.Exit(0)
}
if _, err := upload.Upload(context.Background(), &rpc.UploadReq{
Instance: instance,
Fqbn: fqbn,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment