diff --git a/tests/ampctl_parse.c b/tests/ampctl_parse.c index cc2decb92..521301ba0 100644 --- a/tests/ampctl_parse.c +++ b/tests/ampctl_parse.c @@ -1937,7 +1937,7 @@ declare_proto_amp(send_cmd) rs = &->state; - serial_flush(&rs->ampport); + rig_flush(&rs->ampport); retval = write_block(&rs->ampport, bufcmd, cmd_len); diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c index 3c9befc9a..36e4fe992 100644 --- a/tests/rigctl_parse.c +++ b/tests/rigctl_parse.c @@ -4394,7 +4394,7 @@ declare_proto_rig(send_cmd) rs = &rig->state; - serial_flush(&rs->rigport); + rig_flush(&rs->rigport); rig_debug(RIG_DEBUG_TRACE, "%s: rigport=%d, bufcmd=%s, cmd_len=%d\n", __func__, rs->rigport.fd, hasbinary(bufcmd) ? "BINARY" : bufcmd, cmd_len); diff --git a/tests/rigctlcom.c b/tests/rigctlcom.c index e3f3f9f31..e2cdb95cb 100644 --- a/tests/rigctlcom.c +++ b/tests/rigctlcom.c @@ -614,7 +614,7 @@ int main(int argc, char *argv[]) char *stop_set = ";\n\r"; memset(ts2000, 0, sizeof(ts2000)); - serial_flush(&my_com); // get rid of anything in the queue + rig_flush(&my_com); // get rid of anything in the queue status = read_string(&my_com, ts2000, diff --git a/tests/rotctl_parse.c b/tests/rotctl_parse.c index 87fb78c79..a0dce5701 100644 --- a/tests/rotctl_parse.c +++ b/tests/rotctl_parse.c @@ -1959,7 +1959,7 @@ declare_proto_rot(send_cmd) rs = &rot->state; - serial_flush(&rs->rotport); + rig_flush(&rs->rotport); retval = write_block(&rs->rotport, bufcmd, cmd_len);