Merge pull request #21 from FalsePhilosopher/main

Wextox updated draw_subghz.py
This commit is contained in:
UberGuidoZ 2022-07-18 13:46:35 -07:00 committed by GitHub
commit 934a8d477e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,10 +27,7 @@ for line in lines:
# Split the data into a list of individual timings
timings = []
for line in data:
timings.append(line.split())
# Convert the list of lists into a single list of numbers
timings = [int(x) for x in timings[0]]
timings.extend((int(x) for x in line.split()))
# Convert timings to a stream of 0s and 1s
stream = []