Fix kenwood RD command to use abs value instead of negative sign

https://github.com/Hamlib/Hamlib/issues/341
pull/345/head
Michael Black W9MDB 2020-07-12 11:29:31 -05:00
rodzic 39670273c1
commit f986be28a8
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1711,7 +1711,7 @@ int kenwood_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit)
if (priv->has_rit2) // if backend shows it has the Set 2 command
{
char cmd[10];
snprintf(cmd, sizeof(cmd) - 1, "R%c%05d", rit > 0 ? 'U' : 'D', (int)rit);
snprintf(cmd, sizeof(cmd) - 1, "R%c%05d", rit > 0 ? 'U' : 'D', abs((int)rit));
retval = kenwood_transaction(rig, cmd, NULL, 0);
}
else

Wyświetl plik

@ -27,7 +27,7 @@
#include <string.h>
#include "token.h"
#define BACKEND_VER "20200707"
#define BACKEND_VER "20200712"
#define EOM_KEN ';'
#define EOM_TH '\r'