From 82e8e1bd4aed2ca4e00a75ddf49856d699832a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Sun, 2 Nov 2008 17:32:37 +0000 Subject: [PATCH] clean signoff before closing socket git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2463 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- dummy/netrigctl.c | 5 ++++- dummy/netrotctl.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dummy/netrigctl.c b/dummy/netrigctl.c index 97a8b294e..34526b37a 100644 --- a/dummy/netrigctl.c +++ b/dummy/netrigctl.c @@ -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; } diff --git a/dummy/netrotctl.c b/dummy/netrotctl.c index 8801ed8f0..5de2f1525 100644 --- a/dummy/netrotctl.c +++ b/dummy/netrotctl.c @@ -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; }