Only update kenwood.c IF cache when RIG_OK

pull/314/head
Michael Black W9MDB 2020-06-17 10:47:50 -05:00
rodzic 325754c580
commit e6a5e4ca31
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -543,7 +543,7 @@ transaction_read:
transaction_quit:
// update the cache
if (strcmp(cmdstr, "IF") == 0)
if (retval == RIG_OK && strcmp(cmdstr, "IF") == 0)
{
elapsed_ms(&priv->cache_start, 1);
strncpy(priv->last_if_response, buffer, caps->if_len);

Wyświetl plik

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