Skip to content

Commit bcf0023

Browse files
committed
remove useless id field (was unused)
1 parent d5228ec commit bcf0023

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

serial.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ type writeRequest struct {
1515
p *serport
1616
d string
1717
buffer bool
18-
id string
1918
}
2019

2120
type serialhub struct {
@@ -84,12 +83,12 @@ func (sh *serialhub) run() {
8483
close(p.sendNoBuf)
8584
case wr := <-sh.write:
8685
// if user sent in the commands as one text mode line
87-
write(wr, "")
86+
write(wr)
8887
}
8988
}
9089
}
9190

92-
func write(wr writeRequest, id string) {
91+
func write(wr writeRequest) {
9392
if wr.buffer {
9493
//log.Println("Send was normal send, so sending to wr.p.sendBuffered")
9594
wr.p.sendBuffered <- wr.d

0 commit comments

Comments
 (0)