aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester
diff options
context:
space:
mode:
authorAndre Puschmann <andre@softwareradiosystems.com>2020-07-02 11:30:13 +0200
committerpespin <pespin@sysmocom.de>2020-07-09 13:43:00 +0000
commit69dd689644f65bf6132a6743644de5be9ff178aa (patch)
tree6cd34e34f2762696cc062fb413ee18a21f812477 /src/osmo_gsm_tester
parent955249d39da8f1d01b5876cd274c6fb283737c2c (diff)
rfemu_minicircuits: reset attenuation to zero in dtor
this avoids issues when the channel emulation stops in the middle of a high attenuation values and the device is left in this state. Change-Id: I9aeafc68bf81b8932aac4cb28040b9aea6bfcbdb
Diffstat (limited to 'src/osmo_gsm_tester')
-rw-r--r--src/osmo_gsm_tester/obj/rfemu_minicircuits.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo_gsm_tester/obj/rfemu_minicircuits.py b/src/osmo_gsm_tester/obj/rfemu_minicircuits.py
index 6214040..c501dcf 100644
--- a/src/osmo_gsm_tester/obj/rfemu_minicircuits.py
+++ b/src/osmo_gsm_tester/obj/rfemu_minicircuits.py
@@ -42,6 +42,10 @@ class RFemulationMinicircuitsHTTP(RFemulation):
raise log.Error('No "port" attribute provided in supply conf!')
self.set_name('minicircuits(%s:%r)' % (self.addr, self.ports))
+ def __del__(self):
+ self.dbg('Resetting channel attenuation to zero')
+ self.set_attenuation(0)
+
def _url_prefix(self):
#http://10.12.1.216/:SetAttPerChan:1:0_2:0_3:0_4:0
return 'http://' + self.addr