Commit 4334b47b authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes a bug in vab_square_wave

Showing with 2 additions and 1 deletion
+2 -1
......@@ -151,7 +151,8 @@ class OhmPiHardware:
polarity = 1
return vab, polarity, rab
def vab_square_wave(self, vab, length, sampling_rate, cycles=3):
def vab_square_wave(self, vab, length, sampling_rate, cycles=3, polarity=1):
self.tx.polarity = polarity
self._vab_pulses(vab, [length]*cycles, sampling_rate)
def _vab_pulse(self, vab, length, sampling_rate=None, polarity=None, append=False):
......
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