We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e14e621 + cedf4a9 commit ab801b7Copy full SHA for ab801b7
tx/__init__.py
@@ -47,7 +47,7 @@ def __init__(self, pin, fname, reps=5):
47
self._tim = Timer(5) # Timer 5 controls carrier on/off times
48
self._tcb = self._cb # Pre-allocate
49
asize = reps * max([len(x) for x in self._data.values()]) + 1 # Array size
50
- self._arr = array('H', 0 for _ in range(asize)) # on/off times (μs)
+ self._arr = array('H', (0 for _ in range(asize))) # on/off times (μs)
51
self._aptr = 0 # Index into array
52
53
def _cb(self, t): # T5 callback, generate a carrier mark or space
0 commit comments