Skip to content

Commit 982a271

Browse files
committed
Removed "flavour" option in 'board attach' command
1 parent 15bf593 commit 982a271

File tree

3 files changed

+59
-73
lines changed

3 files changed

+59
-73
lines changed

cli/board/attach.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,12 @@ func initAttachCommand() *cobra.Command {
3939
Args: cobra.RangeArgs(1, 2),
4040
Run: runAttachCommand,
4141
}
42-
attachCommand.Flags().StringVar(&attachFlags.boardFlavour, "flavour", "default",
43-
"The Name of the CPU flavour, it is required for some boards (e.g. Arduino Nano).")
4442
attachCommand.Flags().StringVar(&attachFlags.searchTimeout, "timeout", "5s",
4543
"The timeout of the search of connected devices, try to high it if your board is not found (e.g. to 10s).")
4644
return attachCommand
4745
}
4846

4947
var attachFlags struct {
50-
boardFlavour string // The flavor of the chipset of the cpu of the connected board, if not specified it is set to "default".
5148
searchTimeout string // Expressed in a parsable duration, is the timeout for the list and attach commands.
5249
}
5350

@@ -61,7 +58,6 @@ func runAttachCommand(cmd *cobra.Command, args []string) {
6158
Instance: instance,
6259
BoardUri: args[0],
6360
SketchPath: path,
64-
BoardFlavour: attachFlags.boardFlavour,
6561
SearchTimeout: attachFlags.searchTimeout,
6662
}, cli.OutputTaskProgress())
6763
if err != nil {

rpc/board.pb.go

Lines changed: 58 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/board.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ message BoardAttachReq {
5656
Instance instance = 1;
5757
string board_uri = 2;
5858
string sketch_path = 3;
59-
string board_flavour = 4;
60-
string search_timeout = 5;
59+
string search_timeout = 4;
6160
}
6261

6362
message BoardAttachResp {

0 commit comments

Comments
 (0)