Skip to content

Commit 0ce39a5

Browse files
committed
small changes
1 parent 98b6376 commit 0ce39a5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Diff for: hub.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var h = hub{
5858
const commands = `{
5959
"Commands": [
6060
"list",
61-
"open <portName> <baud> [bufferAlgorithm: ({default}, timed, timedraw)]",
61+
"open <portName> <baud>",
6262
"(send, sendnobuf, sendraw) <portName> <cmd>",
6363
"close <portName>",
6464
"restart",

Diff for: serialport.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,8 @@ func spHandlerOpen(portname string, baud int) {
276276
portName: portname,
277277
}
278278

279-
bw := NewBufferFlowTimed(portname, h.broadcastSys)
280-
bw.Init()
281-
282-
p.bufferFlow = bw
279+
p.bufferFlow = NewBufferFlowTimed(portname, h.broadcastSys)
280+
p.bufferFlow.Init()
283281

284282
sh.Register(p)
285283
defer sh.Unregister(p)

0 commit comments

Comments
 (0)