Skip to content

Commit

Permalink
Merge pull request #262 from antoinevg/antoinevg/fix-acm-serial
Browse files Browse the repository at this point in the history
examples: fix acm_serial example
  • Loading branch information
antoinevg committed Jun 6, 2024
2 parents 86a64b9 + 0608e23 commit bf2f346
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions luna/gateware/usb/devices/acm.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def elaborate(self, platform):
# SET_LINE_CODING: The host attempts to tell us how it wants serial data
# encoding. Since we output a stream, we'll ignore the actual line coding.
with m.Case(self.SET_LINE_CODING):

# Drive interface outputs for this request
m.d.comb += interface.claim.eq(1)

Expand All @@ -56,7 +56,7 @@ def elaborate(self, platform):
# ... and accept whatever the request was.
with m.If(interface.status_requested):
m.d.comb += self.send_zlp()

return m


Expand Down Expand Up @@ -102,7 +102,7 @@ class USBSerialDevice(Elaboratable):
def __init__(self, *, bus, idVendor, idProduct,
manufacturer_string="LUNA",
product_string="USB-to-serial",
serial_number=None, max_packet_size=64):
serial_number="", max_packet_size=64):

self._bus = bus
self._idVendor = idVendor
Expand Down Expand Up @@ -239,4 +239,3 @@ def elaborate(self, platform):
]

return m

0 comments on commit bf2f346

Please sign in to comment.