Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
08a60429
Unverified
Commit
08a60429
authored
Sep 03, 2020
by
Cristian Maglie
Committed by
GitHub
Sep 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip-changelog] Removed leftover from legacy --burn-bootloader flag (#935)
parent
ef57e49b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
24 deletions
+6
-24
cli/upload/upload.go
cli/upload/upload.go
+6
-24
No files found.
cli/upload/upload.go
View file @
08a60429
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment