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
This commit is contained in:
parent
955249d39d
commit
69dd689644
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue