Skip to content

Commit 0622368

Browse files
committed
Renamed SpPortList in SerialPortList
1 parent 87f178b commit 0622368

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

serial.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ type serialhub struct {
4949
mu sync.Mutex
5050
}
5151

52-
// SpPortList is the serial port list
53-
type SpPortList struct {
52+
// SerialPortList is the serial port list
53+
type SerialPortList struct {
5454
Ports []SpPortItem
5555
Mu sync.Mutex `json:"-"`
5656
}
@@ -70,7 +70,7 @@ type SpPortItem struct {
7070
}
7171

7272
// serialPorts contains the ports attached to the machine
73-
var serialPorts SpPortList
73+
var serialPorts SerialPortList
7474

7575
var sh = serialhub{
7676
//write: make(chan *serport, chan []byte),
@@ -121,7 +121,7 @@ func write(wr writeRequest) {
121121
}
122122

123123
// List broadcasts a Json representation of the ports found
124-
func (sp *SpPortList) List() {
124+
func (sp *SerialPortList) List() {
125125
sp.Mu.Lock()
126126
ls, err := json.MarshalIndent(&serialPorts, "", "\t")
127127
sp.Mu.Unlock()

0 commit comments

Comments
 (0)