kopia lustrzana https://github.com/Hamlib/Hamlib
Change P command to T command to avoid EPROM burnout
rodzic
857f3060ee
commit
a5c49b9b44
|
@ -410,7 +410,7 @@ int barrett_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
||||||
|
|
||||||
// If we are not explicity asking for VFO_B then we'll set the receive side also
|
// If we are not explicity asking for VFO_B then we'll set the receive side also
|
||||||
if (vfo != RIG_VFO_B) {
|
if (vfo != RIG_VFO_B) {
|
||||||
sprintf((char *) cmd_buf, "PR%08.0f", freq);
|
sprintf((char *) cmd_buf, "TR%08.0f", freq);
|
||||||
char *response = NULL;
|
char *response = NULL;
|
||||||
retval = barrett_transaction(rig, cmd_buf, 0, &response);
|
retval = barrett_transaction(rig, cmd_buf, 0, &response);
|
||||||
|
|
||||||
|
@ -429,7 +429,7 @@ int barrett_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
||||||
if (priv->split == 0
|
if (priv->split == 0
|
||||||
|| vfo == RIG_VFO_B) { // if we aren't in split mode we have to set the TX VFO too
|
|| vfo == RIG_VFO_B) { // if we aren't in split mode we have to set the TX VFO too
|
||||||
|
|
||||||
sprintf((char *) cmd_buf, "PT%08.0f", freq);
|
sprintf((char *) cmd_buf, "TT%08.0f", freq);
|
||||||
char *response = NULL;
|
char *response = NULL;
|
||||||
retval = barrett_transaction(rig, cmd_buf, 0, &response);
|
retval = barrett_transaction(rig, cmd_buf, 0, &response);
|
||||||
|
|
||||||
|
@ -648,7 +648,7 @@ int barrett_set_split_freq(RIG *rig, vfo_t vfo, freq_t tx_freq)
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: vfo=%s freq=%g\n", __FUNCTION__,
|
rig_debug(RIG_DEBUG_VERBOSE, "%s: vfo=%s freq=%g\n", __FUNCTION__,
|
||||||
rig_strvfo(vfo), tx_freq);
|
rig_strvfo(vfo), tx_freq);
|
||||||
|
|
||||||
sprintf((char *) cmd_buf, "PT%08.0f" EOM, tx_freq);
|
sprintf((char *) cmd_buf, "TT%08.0f" EOM, tx_freq);
|
||||||
|
|
||||||
int retval = barrett_transaction(rig, cmd_buf, 0, NULL);
|
int retval = barrett_transaction(rig, cmd_buf, 0, NULL);
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BACKEND_VER "0.1"
|
#define BACKEND_VER "0.2"
|
||||||
|
|
||||||
#define EOM "\x0d"
|
#define EOM "\x0d"
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
|
|
Ładowanie…
Reference in New Issue