kopia lustrzana https://github.com/Hamlib/Hamlib
Make Kenwood rigs wake up serial port on PS command
Failing get_powerstat will now return RIG_OK https://github.com/Hamlib/Hamlib/issues/1226pull/1242/head
rodzic
eb049ab92d
commit
1e353191bc
|
@ -320,6 +320,9 @@ transaction_write:
|
|||
/* flush anything in the read buffer before command is sent */
|
||||
rig_flush(&rs->rigport);
|
||||
|
||||
// PS command may need to wake up serial port
|
||||
if (strncmp(cmd, "PS", 2) == 0) { write_block(&rs->rigport, (unsigned char *) ";;;;", 4); }
|
||||
|
||||
retval = write_block(&rs->rigport, (unsigned char *) cmd, len);
|
||||
|
||||
free(cmd);
|
||||
|
@ -4847,7 +4850,7 @@ int kenwood_set_powerstat(RIG *rig, powerstat_t status)
|
|||
rig->state.rigport.retry = 0;
|
||||
|
||||
retval = kenwood_transaction(rig,
|
||||
(status == RIG_POWER_ON) ? ";;;;PS1;" : "PS0",
|
||||
(status == RIG_POWER_ON) ? "PS1;" : "PS0;",
|
||||
NULL, 0);
|
||||
|
||||
if (status == RIG_POWER_ON) // wait for wakeup only
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include "misc.h"
|
||||
#include "idx_builtin.h"
|
||||
|
||||
#define BACKEND_VER "20230225"
|
||||
#define BACKEND_VER "20230226"
|
||||
|
||||
#define EOM_KEN ';'
|
||||
#define EOM_TH '\r'
|
||||
|
|
Ładowanie…
Reference in New Issue