Skip to content

Commit ab801b7

Browse files
authored
Merge pull request #1 from kevinkk525/patch-1
Update __init__.py
2 parents e14e621 + cedf4a9 commit ab801b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self, pin, fname, reps=5):
4747
self._tim = Timer(5) # Timer 5 controls carrier on/off times
4848
self._tcb = self._cb # Pre-allocate
4949
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)
50+
self._arr = array('H', (0 for _ in range(asize))) # on/off times (μs)
5151
self._aptr = 0 # Index into array
5252

5353
def _cb(self, t): # T5 callback, generate a carrier mark or space

0 commit comments

Comments
 (0)