Merge pull request #910 from arodland/rt21-azel-spurious

Fix spurious writes when no RT-21 second port
pull/913/head
Michael Black 2021-12-29 14:06:19 -06:00 zatwierdzone przez GitHub
commit e6be62c4af
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 8 dodań i 8 usunięć

Wyświetl plik

@ -493,15 +493,14 @@ static int rt21_rot_set_position(ROT *rot, azimuth_t azimuth,
{
sprintf(cmdstr, "AP1%05.1f\r;",
elevation); /* Total field width of 5 chars */
err = rotorez_send_priv_cmd2(rot, cmdstr);
if (err != RIG_OK)
{
return err;
}
}
err = rotorez_send_priv_cmd2(rot, cmdstr);
if (err != RIG_OK)
{
return err;
}
return RIG_OK;
}
@ -1101,3 +1100,4 @@ DECLARE_INITROT_BACKEND(rotorez)
return RIG_OK;
}