From 13f6a16df1fce7cabc97786514de128ee25fb167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Sat, 1 Nov 2008 16:27:28 +0000 Subject: [PATCH] fix warning git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2447 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- kenwood/th.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kenwood/th.c b/kenwood/th.c index dbf75a2df..4766b10bf 100644 --- a/kenwood/th.c +++ b/kenwood/th.c @@ -2,7 +2,7 @@ * Hamlib Kenwood backend - TH handheld primitives * Copyright (c) 2001-2008 by Stephane Fillod * - * $Id: th.c,v 1.33 2008-11-01 16:22:45 fillods Exp $ + * $Id: th.c,v 1.34 2008-11-01 16:27:28 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 @@ -1226,6 +1226,8 @@ int th_get_channel(RIG *rig, channel_t *chan) if (!chan_caps) return -RIG_ECONF; } + else + return -RIG_ENIMPL; channel_num = chan->channel_num; vfo = chan->vfo; @@ -1497,6 +1499,8 @@ int th_set_channel(RIG *rig, const channel_t *chan) return -RIG_ECONF; channel_num -= chan_caps->start; } + else + return -RIG_ENIMPL; if (rig->caps->rig_model == RIG_MODEL_THF7E) mr_extra = "";