Fixed erroneous return value

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1930 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.4
Berndt Josef Wulf, VK5ABN 2005-02-25 11:32:31 +00:00
rodzic 0b425c4a70
commit 2c49efc1dd
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -7,7 +7,7 @@
* via serial interface to an FT-990 using the "CAT" interface
*
*
* $Id: ft990.c,v 1.15 2005-01-25 00:22:14 fillods Exp $
* $Id: ft990.c,v 1.16 2005-02-25 11:32:31 bwulf Exp $
*
*
* This library is free software; you can redistribute it and/or
@ -2272,7 +2272,7 @@ int ft990_get_channel (RIG *rig, channel_t *chan)
switch(chan->vfo) {
case RIG_VFO_MEM:
if(chan->channel_num < 0 && chan->channel_num > 90)
return RIG_EINVAL;
return -RIG_EINVAL;
// On channel=0 get current or last used memory channel
if(chan->channel_num == 0) {