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 <ben.l.gardi...@gmail.com> CC: Joe Grand <j...@grandideastudio.com> --- https://github.com/BenGardiner/libserialport/commit/1b011060df5579c15bd4e103c2d8afc4d442fd72 _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel