Skip to content

Commit a2b9f11

Browse files
committed
Useless code beautify
1 parent ec6f5fe commit a2b9f11

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

serialport.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,13 @@ func spHandlerOpen(portname string, baud int, buftype string) {
300300
log.Print("Opened port successfully")
301301
//p := &serport{send: make(chan []byte, 256), portConf: conf, portIo: sp}
302302
// we can go up to 256,000 lines of gcode in the buffer
303-
p := &serport{sendBuffered: make(chan string, 256000), sendNoBuf: make(chan []byte), sendRaw: make(chan string), portConf: conf, portIo: sp, BufferType: buftype}
303+
p := &serport{
304+
sendBuffered: make(chan string, 256000),
305+
sendNoBuf: make(chan []byte),
306+
sendRaw: make(chan string),
307+
portConf: conf,
308+
portIo: sp,
309+
BufferType: buftype}
304310

305311
var bw Bufferflow
306312

0 commit comments

Comments
 (0)