Made get_channel aware of untunable blank memory channel

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1834 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.3
Mark J. Fine 2004-09-05 19:15:10 +00:00
rodzic 80dc1f70b6
commit 9305ed2751
1 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Drake backend - main file
* Copyright (c) 2001-2004 by Stephane Fillod
*
* $Id: drake.c,v 1.15 2004-09-05 00:32:57 fineware Exp $
* $Id: drake.c,v 1.16 2004-09-05 19:15:10 fineware 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
@ -442,8 +442,10 @@ int drake_set_mem(RIG *rig, vfo_t vfo, int ch)
retval = drake_transaction (rig, buf, len, ackbuf, &ack_len);
if (ack_len != 2)
if (ack_len != 2) {
rig_debug(RIG_DEBUG_ERR,"drake_set_mem: could not set channel %03d.\n", ch);
retval = RIG_ERJCTED;
}
return retval;
}
@ -575,7 +577,7 @@ int drake_get_chan(RIG *rig, channel_t *chan)
//go to new channel
retval = drake_set_mem(rig, RIG_VFO_CURR, chan->channel_num);
if (retval != RIG_OK)
return retval;
return RIG_OK;
//now decypher it
retval = drake_transaction (rig, "RA" EOM, 3, mdbuf, &mdbuf_len);