Skip to content

Commit

Permalink
fix exception when retrieving IQ samples without NumPy
Browse files Browse the repository at this point in the history
  • Loading branch information
roger- committed Aug 22, 2012
1 parent 35d1abe commit 8ed885d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtlsdr/rtlsdr.py
Expand Up @@ -237,7 +237,7 @@ def packed_bytes_to_iq(self, bytes):
iq -= (1 + 1j)
else:
# use normal list
iq = [complex(i/(255/2) - 1, j/(255/2) - 1) for i, q in izip(bytes[::2], bytes[1::2])]
iq = [complex(i/(255/2) - 1, q/(255/2) - 1) for i, q in izip(bytes[::2], bytes[1::2])]

return iq

Expand Down

0 comments on commit 8ed885d

Please sign in to comment.