Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
377 B
1
Indexable
Never
# create bridge
    lan_bus = create_lan_bus(args.port, args.seg)
    try:
        can_1, can_2 = batch_create_pcan_buses(args.bitrate, args.dbitrate, args.single)
    except PcanCanInitializationError or IndexError:
        showinfo(title=None, message=f'PCAN initialization failed')
        sys.exit(0)
    self.bridge = Bridge(lan_bus, lan_bus, c_1=can_1, ca=can_2)