kopia lustrzana https://github.com/Hamlib/Hamlib
Fix dtr/rts serial port set for amp and rot
rodzic
8fe3080139
commit
9b89e3fe23
|
@ -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,
|
memcpy(&->state.ampport_deprecated, &->state.ampport,
|
||||||
sizeof(amp->state.ampport_deprecated));
|
sizeof(amp->state.ampport_deprecated));
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,7 @@
|
||||||
#include "network.h"
|
#include "network.h"
|
||||||
#include "rot_conf.h"
|
#include "rot_conf.h"
|
||||||
#include "token.h"
|
#include "token.h"
|
||||||
|
#include "serial.h"
|
||||||
|
|
||||||
|
|
||||||
#ifndef DOC_HIDDEN
|
#ifndef DOC_HIDDEN
|
||||||
|
@ -515,6 +516,22 @@ int HAMLIB_API rot_open(ROT *rot)
|
||||||
return status;
|
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,
|
memcpy(&rot->state.rotport_deprecated, &rot->state.rotport,
|
||||||
sizeof(rot->state.rotport_deprecated));
|
sizeof(rot->state.rotport_deprecated));
|
||||||
|
|
Ładowanie…
Reference in New Issue