Skip to content

Commit

Permalink
usb_stream_to_channels: make two channels default argument
Browse files Browse the repository at this point in the history
  • Loading branch information
hansfbaier committed Aug 24, 2021
1 parent 344584b commit e1ae1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateware/usb_stream_to_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from nmigen_library.stream import StreamInterface

class USBStreamToChannels(Elaboratable):
def __init__(self, max_nr_channels):
def __init__(self, max_nr_channels=2):
# parameters
self._max_nr_channels = max_nr_channels
self._channel_bits = Shape.cast(range(max_nr_channels)).width
Expand Down

0 comments on commit e1ae1f4

Please sign in to comment.