Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
380 B
1
Indexable
Never
def batch_create_pcan_buses(bitrate, dbitrate, single=None):
    if single == 1:
        return create_pcan_bus('PCAN_USBBUS1', bitrate, dbitrate), None
    elif single == 2:
        return None, create_pcan_bus('PCAN_USBBUS2', bitrate, dbitrate)
    else:
        return create_pcan_bus('PCAN_USBBUS1', bitrate, dbitrate), create_pcan_bus('PCAN_USBBUS2', bitrate, dbitrate)