Return S0 for TS-480 when PTT is ON

pull/680/head
Mikael Nousiainen 2021-04-19 20:35:53 +03:00
rodzic 9b9a2b5511
commit 212c41f0af
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -1,6 +1,7 @@
/* /*
* Hamlib Kenwood backend - TS-480 description * Hamlib Kenwood backend - TS-480 description
* Copyright (c) 2000-2004 by Stephane Fillod and Juergen Rinas * 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 * 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: case RIG_LEVEL_STRENGTH:
if (rig->state.cache.ptt != RIG_PTT_OFF) { if (rig->state.cache.ptt != RIG_PTT_OFF) {
val->i = 0; val->i = -9 * 6;
break; break;
} }
@ -517,7 +518,7 @@ kenwood_ts480_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
int raw_value; int raw_value;
if (rig->state.cache.ptt == RIG_PTT_OFF) { if (rig->state.cache.ptt == RIG_PTT_OFF) {
val->i = 0; val->f = 0;
break; break;
} }