kopia lustrzana https://github.com/Hamlib/Hamlib
Rotators and amplifiers converted to rig_flush
https://github.com/Hamlib/Hamlib/issues/307pull/345/head
rodzic
1be5c71e76
commit
b50975729c
|
@ -98,7 +98,7 @@ int kpa_flushbuffer(AMP *amp)
|
||||||
|
|
||||||
rs = &->state;
|
rs = &->state;
|
||||||
|
|
||||||
return serial_flush(&rs->ampport);
|
return rig_flush(&rs->ampport);
|
||||||
}
|
}
|
||||||
|
|
||||||
int kpa_transaction(AMP *amp, const char *cmd, char *response, int response_len)
|
int kpa_transaction(AMP *amp, const char *cmd, char *response, int response_len)
|
||||||
|
|
|
@ -67,7 +67,7 @@ celestron_transaction(ROT *rot, const char *cmdstr,
|
||||||
|
|
||||||
transaction_write:
|
transaction_write:
|
||||||
|
|
||||||
serial_flush(&rs->rotport);
|
rig_flush(&rs->rotport);
|
||||||
|
|
||||||
if (cmdstr)
|
if (cmdstr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -63,7 +63,7 @@ easycomm_transaction(ROT *rot, const char *cmdstr, char *data, size_t data_len)
|
||||||
}
|
}
|
||||||
|
|
||||||
rs = &rot->state;
|
rs = &rot->state;
|
||||||
serial_flush(&rs->rotport);
|
rig_flush(&rs->rotport);
|
||||||
retval = write_block(&rs->rotport, cmdstr, strlen(cmdstr));
|
retval = write_block(&rs->rotport, cmdstr, strlen(cmdstr));
|
||||||
|
|
||||||
if (retval != RIG_OK)
|
if (retval != RIG_OK)
|
||||||
|
|
|
@ -69,7 +69,7 @@ gs232_transaction(ROT *rot, const char *cmdstr,
|
||||||
|
|
||||||
transaction_write:
|
transaction_write:
|
||||||
|
|
||||||
serial_flush(&rs->rotport);
|
rig_flush(&rs->rotport);
|
||||||
|
|
||||||
if (cmdstr)
|
if (cmdstr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -74,7 +74,7 @@ gs232a_transaction(ROT *rot, const char *cmdstr,
|
||||||
|
|
||||||
transaction_write:
|
transaction_write:
|
||||||
|
|
||||||
serial_flush(&rs->rotport);
|
rig_flush(&rs->rotport);
|
||||||
|
|
||||||
if (cmdstr)
|
if (cmdstr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -75,7 +75,7 @@ gs232b_transaction(ROT *rot, const char *cmdstr,
|
||||||
|
|
||||||
transaction_write:
|
transaction_write:
|
||||||
|
|
||||||
serial_flush(&rs->rotport);
|
rig_flush(&rs->rotport);
|
||||||
|
|
||||||
if (cmdstr)
|
if (cmdstr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -83,7 +83,7 @@ ioptron_transaction(ROT *rot, const char *cmdstr,
|
||||||
|
|
||||||
transaction_write:
|
transaction_write:
|
||||||
|
|
||||||
serial_flush(&rs->rotport);
|
rig_flush(&rs->rotport);
|
||||||
|
|
||||||
if (cmdstr)
|
if (cmdstr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -179,7 +179,7 @@ rc2800_transaction(ROT *rot, const char *cmdstr,
|
||||||
|
|
||||||
transaction_write:
|
transaction_write:
|
||||||
|
|
||||||
serial_flush(&rs->rotport);
|
rig_flush(&rs->rotport);
|
||||||
|
|
||||||
if (cmdstr)
|
if (cmdstr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -111,7 +111,7 @@ static int meade_transaction(ROT *rot, const char *cmdstr,
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
transaction:
|
transaction:
|
||||||
serial_flush(&rs->rotport);
|
rig_flush(&rs->rotport);
|
||||||
|
|
||||||
if (cmdstr)
|
if (cmdstr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -83,7 +83,7 @@ static int prosistel_transaction(ROT *rot, const char *cmdstr,
|
||||||
|
|
||||||
transaction_write:
|
transaction_write:
|
||||||
|
|
||||||
serial_flush(&rs->rotport);
|
rig_flush(&rs->rotport);
|
||||||
|
|
||||||
if (cmdstr)
|
if (cmdstr)
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue