summaryrefslogtreecommitdiff
path: root/usrp2/firmware/lib/db_init_xcvr.c
diff options
context:
space:
mode:
authorJosh Blum2010-03-01 17:38:21 -0800
committerJosh Blum2010-03-01 17:38:21 -0800
commit4c296bd1f0e7769db69ca15bcc528802b06f752c (patch)
tree9dfeae340d0f7906ece043690445bc41b8772848 /usrp2/firmware/lib/db_init_xcvr.c
parent752df2b84454756685dc2a05c232b59e3ebdaa2e (diff)
downloadgnuradio-4c296bd1f0e7769db69ca15bcc528802b06f752c.tar.gz
gnuradio-4c296bd1f0e7769db69ca15bcc528802b06f752c.tar.bz2
gnuradio-4c296bd1f0e7769db69ca15bcc528802b06f752c.zip
set antenna defaults to 0
Diffstat (limited to 'usrp2/firmware/lib/db_init_xcvr.c')
-rw-r--r--usrp2/firmware/lib/db_init_xcvr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usrp2/firmware/lib/db_init_xcvr.c b/usrp2/firmware/lib/db_init_xcvr.c
index 729faa0be..3e3d3eb86 100644
--- a/usrp2/firmware/lib/db_init_xcvr.c
+++ b/usrp2/firmware/lib/db_init_xcvr.c
@@ -399,5 +399,6 @@ db_set_gain(struct db_base *db, u2_fxpt_gain_t gain)
bool
db_set_antenna(struct db_base *db, int ant)
{
+ if (db->set_antenna == 0) return false;
return db->set_antenna(db, ant);
}