Skip to content

Commit e30cb2a

Browse files
committed
Merge remote-tracking branch 'origin/main' into improve-update-error
2 parents f4ba9fc + 5bcedf4 commit e30cb2a

File tree

3 files changed

+5
-32
lines changed

3 files changed

+5
-32
lines changed

cmd/arduino-app-cli/app/app.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ func NewAppCmd(cfg config.Configuration) *cobra.Command {
3838
appCmd.AddCommand(newRestartCmd(cfg))
3939
appCmd.AddCommand(newLogsCmd(cfg))
4040
appCmd.AddCommand(newListCmd(cfg))
41-
appCmd.AddCommand(newPsCmd())
4241
appCmd.AddCommand(newMonitorCmd(cfg))
4342

4443
return appCmd

cmd/arduino-app-cli/app/ps.go

Lines changed: 0 additions & 30 deletions
This file was deleted.

pkg/board/board.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ func FromFQBN(ctx context.Context, fqbn string) ([]Board, error) {
186186
switch port.GetPort().GetProtocol() {
187187
case SerialProtocol:
188188
serial := strings.ToLower(port.GetPort().GetHardwareId()) // in windows this is uppercase.
189-
190189
// TODO: we should store the board custom name in the product id so we can get it from the discovery service.
191190
var customName string
192191
if conn, err := adb.FromSerial(serial, ""); err == nil {
@@ -211,10 +210,15 @@ func FromFQBN(ctx context.Context, fqbn string) ([]Board, error) {
211210
}
212211
customName = name[:idx]
213212
}
213+
var serial string
214+
if sn, ok := port.GetPort().GetProperties()["serial_number"]; ok {
215+
serial = sn
216+
}
214217

215218
boards = append(boards, Board{
216219
Protocol: NetworkProtocol,
217220
Address: port.GetPort().GetAddress(),
221+
Serial: serial,
218222
BoardName: boardName,
219223
CustomName: customName,
220224
})

0 commit comments

Comments
 (0)