diff --git a/src/amplifier.c b/src/amplifier.c index c0f164945..bffbfe7cf 100644 --- a/src/amplifier.c +++ b/src/amplifier.c @@ -418,6 +418,23 @@ int HAMLIB_API amp_open(AMP *amp) } } + if(rs->ampport.parm.serial.dtr_state == RIG_SIGNAL_ON) + { + ser_set_dtr(&rs->ampport, 1); + } + else + { + ser_set_dtr(&rs->ampport, 0); + } + if(rs->ampport.parm.serial.rts_state == RIG_SIGNAL_ON) + { + ser_set_rts(&rs->ampport, 1); + } + else + { + ser_set_rts(&rs->ampport, 0); + } + memcpy(&->state.ampport_deprecated, &->state.ampport, sizeof(amp->state.ampport_deprecated)); diff --git a/src/rotator.c b/src/rotator.c index b5ed9de07..a2ccec07b 100644 --- a/src/rotator.c +++ b/src/rotator.c @@ -65,6 +65,7 @@ #include "network.h" #include "rot_conf.h" #include "token.h" +#include "serial.h" #ifndef DOC_HIDDEN @@ -515,6 +516,22 @@ int HAMLIB_API rot_open(ROT *rot) return status; } } + if(rs->rotport.parm.serial.dtr_state == RIG_SIGNAL_ON) + { + ser_set_dtr(&rs->rotport, 1); + } + else + { + ser_set_dtr(&rs->rotport, 0); + } + if(rs->rotport.parm.serial.rts_state == RIG_SIGNAL_ON) + { + ser_set_rts(&rs->rotport, 1); + } + else + { + ser_set_rts(&rs->rotport, 0); + } memcpy(&rot->state.rotport_deprecated, &rot->state.rotport, sizeof(rot->state.rotport_deprecated));