From 4e8d180b159e905670675de51b4cf6034ea2c9b5 Mon Sep 17 00:00:00 2001 From: Michael Black Date: Tue, 8 Jan 2019 08:58:32 -0600 Subject: [PATCH] Fix kenwood BC BC2 return --- kenwood/kenwood.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kenwood/kenwood.c b/kenwood/kenwood.c index d78284f4c..62c01be47 100644 --- a/kenwood/kenwood.c +++ b/kenwood/kenwood.c @@ -2210,14 +2210,14 @@ int kenwood_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status) case RIG_FUNC_BC: // Most will return BC1 or BC0, if BC2 then BC1 is off retval = get_kenwood_func(rig, "BC", status); if (retval == RIG_OK) { - *status = *status == '1' ? '1': '0'; + *status = *status == '1' ? 1: 0; } return retval; case RIG_FUNC_BC2: // TS-890 check Beat Cancel 2 we return boolean true/false retval = get_kenwood_func(rig, "BC", status); if (retval == RIG_OK) { - *status = *status == '2' ? '1': '0'; + *status = *status == '2' ? 1: 0; } return retval;