kopia lustrzana https://github.com/Hamlib/Hamlib
Add debug to rotctlparse.c
rodzic
fbc44864b3
commit
a475ebf017
|
@ -1446,6 +1446,7 @@ int rotctl_parse(ROT *my_rot, FILE *fin, FILE *fout, char *argv[], int argc,
|
|||
/* only for rotctld */
|
||||
if (interactive && !prompt)
|
||||
{
|
||||
rot_debug(RIG_DEBUG_TRACE, "%s: NETROTCTL_RET %d\n", __func__, retcode);
|
||||
fprintf(fout, NETROTCTL_RET "%d\n", retcode);
|
||||
// ext_resp = 0; // not used ?
|
||||
resp_sep = '\n';
|
||||
|
@ -1466,12 +1467,14 @@ int rotctl_parse(ROT *my_rot, FILE *fin, FILE *fout, char *argv[], int argc,
|
|||
/* netrotctl RIG_OK */
|
||||
if (!(cmd_entry->flags & ARG_OUT) && !ext_resp)
|
||||
{
|
||||
rot_debug(RIG_DEBUG_TRACE, "%s: NETROTCTL_RET 0\n", __func__);
|
||||
fprintf(fout, NETROTCTL_RET "0\n");
|
||||
}
|
||||
|
||||
/* Extended Response protocol */
|
||||
else if (ext_resp && cmd != 0xf0)
|
||||
{
|
||||
rot_debug(RIG_DEBUG_TRACE, "%s: NETROTCTL_RET 0\n", __func__);
|
||||
fprintf(fout, NETROTCTL_RET "0\n");
|
||||
resp_sep = '\n';
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue