From: matt Date: Fri, 30 Nov 2007 19:33:45 +0000 (+0000) Subject: minor updates X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=92af10c79ff5596839262b4772c65ab405738623;p=debian%2Fgnuradio minor updates git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7059 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/gr-usrp/src/db_xcvr2450.py b/gr-usrp/src/db_xcvr2450.py index 01b3af8c..8c22f0d8 100644 --- a/gr-usrp/src/db_xcvr2450.py +++ b/gr-usrp/src/db_xcvr2450.py @@ -327,7 +327,7 @@ class xcvr2450_tx(xcvr2450_base): Gain is controlled by a VGA in the output amplifier, not the PGA """ - return (-56, 0, 0.1) + return (0, 63, 0.1) def set_gain(self, gain): """ @@ -336,7 +336,10 @@ class xcvr2450_tx(xcvr2450_base): @param gain: gain in decibels @returns True/False """ - maxgain = self.gain_range()[1] + gain = int(gain) + if (gain>gain_range()[1]) or (gain