Skip to content

Commit 77ef26b

Browse files
authored
Merge pull request #39 from arduino/revert_io_flush
Revert "Cleanup IO buffers after opening the serial port"
2 parents 1f81047 + a97d1ea commit 77ef26b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

main.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,6 @@ func (d *SerialMonitor) Open(boardPort string) (io.ReadWriter, error) {
161161
if err != nil {
162162
return nil, err
163163
}
164-
165-
// Clean up residual data in IO buffers
166-
_ = serialPort.ResetInputBuffer() // do not error if resetting buffers fails
167-
_ = serialPort.ResetOutputBuffer()
168-
169164
d.openedPort = true
170165
d.serialPort = serialPort
171166
return d.serialPort, nil

0 commit comments

Comments
 (0)