Skip to content

Commit f1fd9f3

Browse files
committed
Report protocol on 'remove' event
1 parent d70b1fb commit f1fd9f3

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

sync_darwin.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ func startSync() (chan<- bool, error) {
125125
if !portListHas(updates, port) {
126126
output(&syncOutputJSON{
127127
EventType: "remove",
128-
Port: &boardPortJSON{Address: port.Name},
128+
Port: &boardPortJSON{
129+
Address: port.Name,
130+
Protocol: "serial",
131+
},
129132
})
130133
}
131134
}

sync_linux.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ func startSync() (chan<- bool, error) {
9898
if evt.Action == "remove" {
9999
output(&syncOutputJSON{
100100
EventType: "remove",
101-
Port: &boardPortJSON{Address: changedPort},
101+
Port: &boardPortJSON{
102+
Address: changedPort,
103+
Protocol: "serial",
104+
},
102105
})
103106
}
104107
}

sync_windows.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,10 @@ func startSync() (chan<- bool, error) {
170170
if !portListHas(updates, port) {
171171
output(&syncOutputJSON{
172172
EventType: "remove",
173-
Port: &boardPortJSON{Address: port.Name},
173+
Port: &boardPortJSON{
174+
Address: port.Name,
175+
Protocol: "serial",
176+
},
174177
})
175178
}
176179
}

0 commit comments

Comments
 (0)