Skip to content

Commit d79df08

Browse files
committed
Correction done by pre-commit
1 parent 9efc83b commit d79df08

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

adafruit_mcp2515/__init__.py

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -188,30 +188,33 @@
188188
5000: (0x3F, 0xFF, 0x87),
189189
666000: (0x00, 0xA0, 0x04),
190190
},
191-
192191
# Values based on this calculator, for 8MHz, controller MCP2510:
193192
# https://www.kvaser.com/support/calculators/bit-timing-calculator/
194193
8000000: {
195194
# CNF1, CNF2, CNF3
196-
1000000: (0x00, 0x91, 0x01), # seems it is not possible, this values may be wrong
195+
1000000: (
196+
0x00,
197+
0x91,
198+
0x01,
199+
), # seems it is not possible, this values may be wrong
197200
500000: (0x00, 0x91, 0x01),
198-
250000: (0x40, 0xb5, 0x01),
199-
200000: (0x00, 0xb6, 0x04),
200-
125000: (0x01, 0xac, 0x03),
201-
100000: (0x01, 0xb6, 0x04),
202-
95000: (0x41, 0xbe, 0x04),
201+
250000: (0x40, 0xB5, 0x01),
202+
200000: (0x00, 0xB6, 0x04),
203+
125000: (0x01, 0xAC, 0x03),
204+
100000: (0x01, 0xB6, 0x04),
205+
95000: (0x41, 0xBE, 0x04),
203206
83300: (0x02, 0xAC, 0x03),
204-
80000: (0x04, 0x9a, 0x01),
205-
50000: (0x03, 0xb6, 0x04),
206-
40000: (0x04, 0xb6, 0x04),
207-
33000: (0x0a, 0x9a, 0x02),
208-
31250: (0x07, 0xac, 0x03),
207+
80000: (0x04, 0x9A, 0x01),
208+
50000: (0x03, 0xB6, 0x04),
209+
40000: (0x04, 0xB6, 0x04),
210+
33000: (0x0A, 0x9A, 0x02),
211+
31250: (0x07, 0xAC, 0x03),
209212
25000: (0x07, 0xB6, 0x04),
210-
20000: (0x09, 0xb6, 0x04),
211-
10000: (0x13, 0xb6, 0x04),
212-
5000: (0x27, 0xb6, 0x04),
213+
20000: (0x09, 0xB6, 0x04),
214+
10000: (0x13, 0xB6, 0x04),
215+
5000: (0x27, 0xB6, 0x04),
213216
666000: (0x00, 0x88, 0x01),
214-
}
217+
},
215218
}
216219

217220

0 commit comments

Comments
 (0)