kopia lustrzana https://github.com/Hamlib/Hamlib
Delete useless variables of pmr171 and q900
rodzic
14a81b9ad9
commit
b7388e2fca
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue