Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Nov 27, 2023
1 parent 1ce89ef commit 192af92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PoC.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def transmit_bits(tmpfile, bits, T0, readsize):
fp.seek(offset)
for b in list(bits):
# sync()
if (b == '0'):
print("0 sleep " + str(T0))
if b == '0':
print(f"0 sleep {str(T0)}")
time.sleep(T0)
if (b == '1'):
elif b == '1':
sync()
fp.seek(offset)
print("1 read %d bytes" % len(fp.read(readsize)))
Expand All @@ -44,7 +44,7 @@ def manchester(bits):
for b in list(bits):
if b == '0':
r += '01'
if b == '1':
elif b == '1':
r += '10'
return r

Expand Down

0 comments on commit 192af92

Please sign in to comment.