Fix segfault in powerminmax for kenwood

pull/1626/head
Mike Black W9MDB 2024-10-01 11:50:01 -05:00
rodzic a6fe6b5475
commit 64d39f58ef
2 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -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; }

Wyświetl plik

@ -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'