Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0ce39a5

Browse files
committed
small changes
1 parent98b6376 commit0ce39a5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

‎hub.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var h = hub{
5858
constcommands=`{
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",

‎serialport.go‎

Lines changed: 2 additions & 4 deletions
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
defersh.Unregister(p)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp