Skip to content

Commit 90b92ba

Browse files
committed
drivers/sdcard/crc7.py: made ruff happy
Signed-off-by: Marcus Mendenhall, mendenmh@gmail.com
1 parent d6075af commit 90b92ba

File tree

1 file changed

+4
-4
lines changed
  • micropython/drivers/storage/sdcard

1 file changed

+4
-4
lines changed

micropython/drivers/storage/sdcard/crc7.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@
4747
# import gc
4848
# gc.collect() #make sure residual list gets cleaned up to save memory
4949

50-
crc7_be_syndrome_table = bytearray(256) #pre-allocate so it is low in memory
50+
crc7_be_syndrome_table = bytearray(256) # pre-allocate so it is low in memory
5151

52-
#avoid ruff long-line requirements by just filling out the table
52+
# avoid ruff long-line requirements by just filling out the table
5353
_poly = const(0x89)
5454
for i in range(256):
5555
u = i
5656
for j in range(8):
57-
if (u & 0x80):
58-
u ^= _poly
57+
if u & 0x80:
58+
u ^= _poly
5959
u = u << 1
6060
crc7_be_syndrome_table[i] = u
6161

0 commit comments

Comments
 (0)