Hamlib/src
Johan Ström af7bb1a0fc Backup serial options on open, restore on close
Before altering the serial port settings, make a copy of the settings
and track it by the fd. On serial port close, restore the original
settings for that port.

On Mac OS the Prolific PL2032 kernel driver locks up if closing without
first restoring the options. When this happens, further usage of the port
is impossible until computer is rebooted, which cannot even be done
without a hard power-off.
With this fix, a clean close make sure we can re-open the port again.
2019-06-09 23:22:18 +02:00
..
Android.mk
Makefile.am
cal.c
cal.h
cm108.c
cm108.h
conf.c
debug.c
event.c
event.h
ext.c
gpio.c
gpio.h
idx_builtin.h
iofunc.c
iofunc.h
locator.c
mem.c
microham.c
microham.h
misc.c
misc.h
network.c
network.h
par_nt.h
parallel.c
parallel.h
register.c
register.h
rig.c
rot_conf.c
rot_conf.h
rot_reg.c
rotator.c
serial.c Backup serial options on open, restore on close 2019-06-09 23:22:18 +02:00
serial.h
settings.c
token.h
tones.c
tones.h
usb_port.c
usb_port.h