File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ type serialhub struct {
49
49
mu sync.Mutex
50
50
}
51
51
52
- // SpPortList is the serial port list
53
- type SpPortList struct {
52
+ // SerialPortList is the serial port list
53
+ type SerialPortList struct {
54
54
Ports []SpPortItem
55
55
Mu sync.Mutex `json:"-"`
56
56
}
@@ -70,7 +70,7 @@ type SpPortItem struct {
70
70
}
71
71
72
72
// serialPorts contains the ports attached to the machine
73
- var serialPorts SpPortList
73
+ var serialPorts SerialPortList
74
74
75
75
var sh = serialhub {
76
76
//write: make(chan *serport, chan []byte),
@@ -121,7 +121,7 @@ func write(wr writeRequest) {
121
121
}
122
122
123
123
// List broadcasts a Json representation of the ports found
124
- func (sp * SpPortList ) List () {
124
+ func (sp * SerialPortList ) List () {
125
125
sp .Mu .Lock ()
126
126
ls , err := json .MarshalIndent (& serialPorts , "" , "\t " )
127
127
sp .Mu .Unlock ()
You can’t perform that action at this time.
0 commit comments