Fix divide by zero in kenwood.c set_powerstat

pull/224/head
Michael Black 2020-04-06 08:38:58 -05:00
rodzic 33003d8d57
commit 3ac82b5635
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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

Wyświetl plik

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