clean signoff before closing socket

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2463 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.8
Stéphane Fillod, F8CFE 2008-11-02 17:32:37 +00:00
rodzic 5d3e8c1385
commit 82e8e1bd4a
2 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Netrigctl backend - main file
* Copyright (c) 2001-2008 by Stephane Fillod
*
* $Id: netrigctl.c,v 1.2 2008-10-27 22:23:36 fillods Exp $
* $Id: netrigctl.c,v 1.3 2008-11-02 17:32:37 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -278,6 +278,9 @@ static int netrigctl_close(RIG *rig)
{
rig_debug(RIG_DEBUG_VERBOSE,"%s called\n", __FUNCTION__);
/* clean signoff, no read back */
write_block(&rig->state.rigport, "q\n", 2);
return RIG_OK;
}

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Netrotctl backend - main file
* Copyright (c) 2001-2008 by Stephane Fillod
*
* $Id: netrotctl.c,v 1.2 2008-10-27 22:23:36 fillods Exp $
* $Id: netrotctl.c,v 1.3 2008-11-02 17:32:37 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -120,6 +120,9 @@ static int netrotctl_close(ROT *rot)
{
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __FUNCTION__);
/* clean signoff, no read back */
write_block(&rot->state.rotport, "q\n", 2);
return RIG_OK;
}