Change kenwood power setting to 0-max instead of min-max

https://github.com/Hamlib/Hamlib/issues/465
pull/468/head
Michael Black W9MDB 2020-12-14 12:59:38 -06:00
rodzic da04467584
commit 41969433ed
2 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -2396,7 +2396,10 @@ int kenwood_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val)
if (retval != RIG_OK) { return retval; }
kenwood_val = val.f * (power_max - power_min) + power_min;
// https://github.com/Hamlib/Hamlib/issues/465
kenwood_val = val.f * power_max;
if (kenwood_val < power_min) kenwood_val = power_min;
if (kenwood_val > power_max) kenwood_val = power_max;
snprintf(levelbuf, sizeof(levelbuf), "PC%03d", kenwood_val);
break;
}

Wyświetl plik

@ -27,7 +27,7 @@
#include <string.h>
#include "token.h"
#define BACKEND_VER "20201126"
#define BACKEND_VER "20201214"
#define EOM_KEN ';'
#define EOM_TH '\r'