Skip to content

Commit 80747e3

Browse files
committed
reformat files
1 parent 65f46cd commit 80747e3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

examples/cyclic_multiple.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ def cyclic_multiple_send_modify(bus):
133133
for interface, channel in [("socketcan", "vcan0")]:
134134
print(f"Carrying out cyclic multiple tests with {interface} interface")
135135

136-
with can.Bus(interface=interface, channel=channel, bitrate=500000) as BUS: # type: ignore
136+
with can.Bus(
137+
interface=interface, channel=channel, bitrate=500000
138+
) as BUS: # type: ignore
137139
cyclic_multiple_send(BUS)
138140
cyclic_multiple_send_modify(BUS)
139141

examples/virtual_can_demo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def producer(thread_id: int, message_count: int = 16):
1919
with can.Bus(bustype="socketcan", channel="vcan0") as bus: # type: ignore
2020
for i in range(message_count):
2121
msg = can.Message(
22-
arbitration_id=0x0CF02200 + thread_id, data=[thread_id, i, 0, 1, 3, 1, 4, 1]
22+
arbitration_id=0x0CF02200 + thread_id,
23+
data=[thread_id, i, 0, 1, 3, 1, 4, 1],
2324
)
2425
bus.send(msg)
2526
sleep(1.0)

0 commit comments

Comments
 (0)