From 72476c21bec7bb0c934c0d46d3218a698382c6d0 Mon Sep 17 00:00:00 2001 From: Michael Black Date: Fri, 13 Dec 2019 23:28:49 -0600 Subject: [PATCH] Added set_powerstat 1 to kenwood_init -- any reason not to do this? Do we ever want to start rigctl or rigctld on a non-powered rig? Maybe should do this on all rigs? TS590S rigctl could not start with power off as firmware version is needed. And many other things require the rig to be up when rigctl is started. We won't let set_powerstat fail the startup just in case. --- kenwood/kenwood.c | 3 +++ kenwood/kenwood.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/kenwood/kenwood.c b/kenwood/kenwood.c index 4629c2ee0..711999e05 100644 --- a/kenwood/kenwood.c +++ b/kenwood/kenwood.c @@ -611,6 +611,9 @@ int kenwood_init(RIG *rig) rig_debug(RIG_DEBUG_TRACE, "%s: if_len = %d\n", __func__, caps->if_len); + // Ensure power is on -- any reason not to do this? + rig_set_powerstat(rig,1); + return RIG_OK; } diff --git a/kenwood/kenwood.h b/kenwood/kenwood.h index 960e83f9b..08d3bff16 100644 --- a/kenwood/kenwood.h +++ b/kenwood/kenwood.h @@ -27,7 +27,7 @@ #include #include "token.h" -#define BACKEND_VER "1.4" +#define BACKEND_VER "1.5" #define EOM_KEN ';' #define EOM_TH '\r'