@@ -122,14 +122,15 @@ func (dr result) String() string {
122122 })
123123
124124 t := table .New ()
125- t .SetHeader (tr ("Port" ), tr ("Type" ), tr ("Board Name" ), tr ("FQBN" ), tr ("Core" ))
125+ t .SetHeader (tr ("Port" ), tr ("Protocol" ), tr ( " Type" ), tr ("Board Name" ), tr ("FQBN" ), tr ("Core" ))
126126 for _ , detectedPort := range dr .ports {
127127 port := detectedPort .Port
128- address := port .GetProtocol () + "://" + port .GetAddress ()
128+ protocol := port .GetProtocol ()
129+ address := port .GetAddress ()
129130 if port .GetProtocol () == "serial" {
130131 address = port .GetAddress ()
131132 }
132- protocol := port .GetProtocolLabel ()
133+ protocolLabel := port .GetProtocolLabel ()
133134 if boards := detectedPort .GetMatchingBoards (); len (boards ) > 0 {
134135 sort .Slice (boards , func (i , j int ) bool {
135136 x , y := boards [i ], boards [j ]
@@ -146,7 +147,7 @@ func (dr result) String() string {
146147 coreName = fmt .Sprintf ("%s:%s" , fqbn .Package , fqbn .PlatformArch )
147148 }
148149
149- t .AddRow (address , protocol , board , fqbn , coreName )
150+ t .AddRow (address , protocol , protocolLabel , board , fqbn , coreName )
150151
151152 // reset address and protocol, we only show them on the first row
152153 address = ""
0 commit comments