We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
1 parent 4585769 commit 283064cCopy full SHA for 283064c
serialport.go
@@ -240,7 +240,10 @@ func (p *serport) writerNoBuf() {
240
p.OnMessage([]byte(msgstr))
241
242
p.portIo.Close()
243
- // serialPorts.List(
+
244
+ // The effect of this call is to send in to all the we client the list of serial ports
245
+ // TODO: investigate if this is superfluous and it can be removed.
246
+ // serialPorts.List()
247
248
}
249
serialportlist.go
@@ -12,11 +12,10 @@ import (
12
)
13
14
type serialPortList struct {
15
- tools *tools.Tools
16
-
17
Ports []*SpPortItem
18
portsLock sync.Mutex
19
+ tools *tools.Tools `json:"-"`
20
OnList func([]byte) `json:"-"`
21
OnErr func(string) `json:"-"`
22
0 commit comments