From 212c41f0af56222982cb728fe58ac7b96737a033 Mon Sep 17 00:00:00 2001 From: Mikael Nousiainen Date: Mon, 19 Apr 2021 20:35:53 +0300 Subject: [PATCH] Return S0 for TS-480 when PTT is ON --- rigs/kenwood/ts480.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rigs/kenwood/ts480.c b/rigs/kenwood/ts480.c index 3318d2527..a0adc585d 100644 --- a/rigs/kenwood/ts480.c +++ b/rigs/kenwood/ts480.c @@ -1,6 +1,7 @@ /* * Hamlib Kenwood backend - TS-480 description * Copyright (c) 2000-2004 by Stephane Fillod and Juergen Rinas + * Copyright (c) 2021 by Mikael Nousiainen * * * This library is free software; you can redistribute it and/or @@ -353,7 +354,7 @@ kenwood_ts480_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val) case RIG_LEVEL_STRENGTH: if (rig->state.cache.ptt != RIG_PTT_OFF) { - val->i = 0; + val->i = -9 * 6; break; } @@ -517,7 +518,7 @@ kenwood_ts480_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val) int raw_value; if (rig->state.cache.ptt == RIG_PTT_OFF) { - val->i = 0; + val->f = 0; break; }