aboutsummaryrefslogtreecommitdiffstats
path: root/python/dpd/Adapt.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-05-07 11:46:45 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-05-07 11:46:45 +0200
commit04c3650d5f730891c33e45d2f07c052c6393c2e8 (patch)
treed95431a387598f88b4a05df7a1dd3d3c91f6126b /python/dpd/Adapt.py
parentf6e3913f80ec15f2a554dc2ad1fe219cefd1f5d2 (diff)
parent3a7202306c6aca5be2dad604f62063d605fd0982 (diff)
downloaddabmod-04c3650d5f730891c33e45d2f07c052c6393c2e8.tar.gz
dabmod-04c3650d5f730891c33e45d2f07c052c6393c2e8.tar.bz2
dabmod-04c3650d5f730891c33e45d2f07c052c6393c2e8.zip
Merge branch 'next' into lime
Diffstat (limited to 'python/dpd/Adapt.py')
-rw-r--r--python/dpd/Adapt.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/dpd/Adapt.py b/python/dpd/Adapt.py
index a30f0c8..745a507 100644
--- a/python/dpd/Adapt.py
+++ b/python/dpd/Adapt.py
@@ -76,7 +76,7 @@ class Adapt:
try:
return float(self._mod_rc.get_param_value("sdr", "txgain"))
except ValueError as e:
- logging.warning(f"Adapt: get_txgain error: {e}")
+ logging.warning("Adapt: get_txgain error: {}".format(e))
return -1.0
def set_rxgain(self, gain: float) -> None:
@@ -90,7 +90,7 @@ class Adapt:
try:
return float(self._mod_rc.get_param_value("sdr", "rxgain"))
except ValueError as e:
- logging.warning(f"Adapt: get_rxgain error: {e}")
+ logging.warning("Adapt: get_rxgain error: {}".format(e))
return -1.0
def set_digital_gain(self, gain: float) -> None:
@@ -102,7 +102,7 @@ class Adapt:
try:
return float(self._mod_rc.get_param_value("gain", "digital"))
except ValueError as e:
- logging.warning(f"Adapt: get_digital_gain error: {e}")
+ logging.warning("Adapt: get_digital_gain error: {}".format(e))
return -1.0
def get_predistorter(self):