kopia lustrzana https://github.com/Hamlib/Hamlib
Fix segfault in powerminmax for kenwood
rodzic
a6fe6b5475
commit
64d39f58ef
|
@ -3034,8 +3034,10 @@ static int kenwood_get_power_minmax(RIG *rig, int *power_now, int *power_min,
|
|||
// TS890S can't take power levels outside 5-100 and 5-25
|
||||
// So all we'll do is read power_now
|
||||
case RIG_MODEL_TS890S:
|
||||
rs->power_min = *power_min = 5;
|
||||
rs->power_max = *power_max = 100;
|
||||
rs->power_min = 5;
|
||||
rs->power_max = 100;
|
||||
if (power_min) *power_min = 5;
|
||||
if (power_max) *power_max = 5;
|
||||
|
||||
if (rs->current_mode == RIG_MODE_AM) { *power_max = 50; }
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include "token.h"
|
||||
#include "idx_builtin.h"
|
||||
|
||||
#define BACKEND_VER "20240925"
|
||||
#define BACKEND_VER "20241001"
|
||||
|
||||
#define EOM_KEN ';'
|
||||
#define EOM_TH '\r'
|
||||
|
|
Ładowanie…
Reference in New Issue