kopia lustrzana https://github.com/Hamlib/Hamlib
Fix divide by zero in kenwood.c set_powerstat
rodzic
33003d8d57
commit
3ac82b5635
|
@ -3351,7 +3351,7 @@ int kenwood_set_powerstat(RIG *rig, powerstat_t status)
|
|||
(status == RIG_POWER_ON) ? ";;;;PS1;" : "PS0",
|
||||
NULL, 0);
|
||||
int i = 0;
|
||||
int retry = 3 / rig->state.rigport.retry;
|
||||
int retry = rig->state.rigport.retry / 3;
|
||||
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called status=%d\n", __func__, status);
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <string.h>
|
||||
#include "token.h"
|
||||
|
||||
#define BACKEND_VER "20200403"
|
||||
#define BACKEND_VER "20200406"
|
||||
|
||||
#define EOM_KEN ';'
|
||||
#define EOM_TH '\r'
|
||||
|
|
Ładowanie…
Reference in New Issue