summaryrefslogtreecommitdiffstats
path: root/dpd/src/Adapt.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-05 10:02:59 +0200
committerandreas128 <Andreas>2017-09-05 10:18:05 +0200
commit1b6c5dd58658bbc1b423b50baa15ca3fae6a1065 (patch)
tree0b457a2bc92d295970a94640fa7fe63844c489a6 /dpd/src/Adapt.py
parentb9aab4c9ab542823ec751e32ea7462428d98419c (diff)
downloaddabmod-1b6c5dd58658bbc1b423b50baa15ca3fae6a1065.tar.gz
dabmod-1b6c5dd58658bbc1b423b50baa15ca3fae6a1065.tar.bz2
dabmod-1b6c5dd58658bbc1b423b50baa15ca3fae6a1065.zip
Change max to meadian in TX_Agc
Diffstat (limited to 'dpd/src/Adapt.py')
-rw-r--r--dpd/src/Adapt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dpd/src/Adapt.py b/dpd/src/Adapt.py
index 78eaa9e..5e05112 100644
--- a/dpd/src/Adapt.py
+++ b/dpd/src/Adapt.py
@@ -90,7 +90,7 @@ class Adapt:
def get_txgain(self):
"""Get the txgain value in dB for the ODR-DabMod."""
# TODO handle failure
- return int(self.send_receive("get uhd txgain")[0])
+ return float(self.send_receive("get uhd txgain")[0])
def set_rxgain(self, gain):
"""Set a new rxgain for the ODR-DabMod.