Fix kenwood cache IF len -- have to remove terminator

https://github.com/Hamlib/Hamlib/issues/226
pull/234/head
mdblack98 2020-04-29 08:13:23 -05:00
rodzic 39ea145365
commit 4b071f90ae
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -532,7 +532,7 @@ transaction_quit:
if (strcmp(cmdstr, "IF") == 0)
{
elapsed_ms(&priv->cache_start, 1);
strncpy(priv->last_if_response, buffer, sizeof(priv->last_if_response));
strncpy(priv->last_if_response, buffer, caps->if_len);
}
rs->hold_decode = 0;

Wyświetl plik

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