Delete useless variables of pmr171 and q900

pull/1781/head
声纳 2025-06-26 09:21:05 +08:00
rodzic 14a81b9ad9
commit b7388e2fca
2 zmienionych plików z 1 dodań i 5 usunięć

Wyświetl plik

@ -349,7 +349,6 @@ static int pmr171_open(RIG *rig)
{
hamlib_port_t *rp = RIGPORT(rig);
int retry = 5;
bool success = false;
while (retry > 0) {
rig_flush(rp);
@ -357,7 +356,6 @@ static int pmr171_open(RIG *rig)
int r = read_block(rp, reply, rlen);
if (r > 0) {
success = true;
break;
}
@ -365,7 +363,7 @@ static int pmr171_open(RIG *rig)
hl_usleep(20 * 1000);
}
return success ? RIG_OK : RIG_OK;
return RIG_OK;
}
static int pmr171_send_cmd1(RIG *rig, unsigned char cmd, unsigned char *reply)

Wyświetl plik

@ -348,7 +348,6 @@ static int q900_open(RIG *rig)
{
hamlib_port_t *rp = RIGPORT(rig);
int retry = 5;
bool success = false;
while (retry > 0) {
rig_flush(rp);
@ -356,7 +355,6 @@ static int q900_open(RIG *rig)
int r = read_block(rp, reply, rlen);
if (r > 0) {
success = true;
break;
}