mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
typedef enum `dtrcontrol_t` for specification in the constructor of `serial::Serial` and `serial::Serial::SerialImpl`. add `dtrcontrol_t` parameter to `serial::Serial` and `serial::Serial::SerialImpl` constructors for both windows and unix. `serial::Serial` constructor parameter defaults to `dtr_disable`. set dtr control in `serial::Serial::SerialImpl::reconfigurePort` with `ioctl`. change parameter for `setDTR` to `dtrcontrol_t` in both `serial::Serial` and `serial::Serial::SerialImpl` for both windows and unix. Changed default in `serial::Serial::setDTR` to `dtr_enable`.