Fix th.c logic error discovered by cppcheck

https://github.com/Hamlib/Hamlib/issues/1351
pull/1392/head
Mike Black W9MDB 2023-10-01 17:42:45 -05:00
rodzic 18e122196f
commit 18d016a2a2
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -522,7 +522,7 @@ th_get_vfo_char(RIG *rig, vfo_t *vfo, char *vfoch)
break;
case 6: /*intended for D700 BC 0,0*/
if ((buf[0] == 'B') && (buf[1] == 'C') && (buf[2] == ' ') && (buf[4] = ','))
if ((buf[0] == 'B') && (buf[1] == 'C') && (buf[2] == ' ') && (buf[4] == ','))
{
vfoc = buf[3];
}

Wyświetl plik

@ -25,7 +25,7 @@
#include "rig.h"
#define TH_VER "20200701"
#define TH_VER "20231001"
extern int th_transaction (RIG *rig, const char *cmdstr, char *data, size_t datasize);
extern int th_get_vfo_char(RIG *rig, vfo_t *vfo, char *vfoch);