kopia lustrzana https://github.com/Hamlib/Hamlib
Change kenwood power setting to 0-max instead of min-max
https://github.com/Hamlib/Hamlib/issues/465pull/468/head
rodzic
da04467584
commit
41969433ed
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
|
|
Ładowanie…
Reference in New Issue