]> sigrok.org Git - libserialport.git/commit
sp: clear HUPCL to preserve control lines on close
authorBen Gardiner <redacted>
Tue, 22 Sep 2020 03:10:08 +0000 (03:10 +0000)
committerBen Gardiner <redacted>
Tue, 22 Sep 2020 03:10:08 +0000 (03:10 +0000)
commit1b011060df5579c15bd4e103c2d8afc4d442fd72
tree5d0c3a1039a39a08723aedc384470954e8d35fed
parent086a4181459ff5723d71a1604ddef058030155dd
sp: clear HUPCL to preserve control lines on close

The comment and code are out of sync. The comments say "leave control
lines alone on close." The HUPCL bit, when set, will "Lower modem control
lines after last process closes the device (hang up)."

To match the intent captured in the comment, the HUPCL bit should be
cleared.

Signed-off-by: Ben Gardiner <redacted>
serialport.c