We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6075af commit 90b92baCopy full SHA for 90b92ba
micropython/drivers/storage/sdcard/crc7.py
@@ -47,15 +47,15 @@
47
# import gc
48
# gc.collect() #make sure residual list gets cleaned up to save memory
49
50
-crc7_be_syndrome_table = bytearray(256) #pre-allocate so it is low in memory
+crc7_be_syndrome_table = bytearray(256) # pre-allocate so it is low in memory
51
52
-#avoid ruff long-line requirements by just filling out the table
+# avoid ruff long-line requirements by just filling out the table
53
_poly = const(0x89)
54
for i in range(256):
55
u = i
56
for j in range(8):
57
- if (u & 0x80):
58
- u ^= _poly
+ if u & 0x80:
+ u ^= _poly
59
u = u << 1
60
crc7_be_syndrome_table[i] = u
61
0 commit comments