Commit 65bff595 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Tries to handle BrokenBarrier Exception

Showing with 2 additions and 1 deletion
+2 -1
......@@ -451,7 +451,8 @@ class OhmPi(object):
if injection_duration is None:
injection_duration = self.settings['injection_duration']
tx_volt = float(tx_volt)
if self.switch_mux_on(quad, cmd_id, bypass_check=kwargs['bypass_check'] if 'bypass_check' in kwargs.keys() else False):
bypass_check = kwargs['bypass_check'] if 'bypass_check' in kwargs.keys() else False
if self.switch_mux_on(quad, cmd_id, bypass_check=bypass_check):
self._hw.vab_square_wave(tx_volt, cycle_length=injection_duration*2, cycles=nb_stack)
d = {
"time": datetime.now().isoformat(),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment