diff --git a/micropython/usbd/cdc.py b/micropython/usbd/cdc.py index e19337ffa..016500e99 100644 --- a/micropython/usbd/cdc.py +++ b/micropython/usbd/cdc.py @@ -8,6 +8,9 @@ endpoint_descriptor, EP_IN_FLAG ) + +from .midi import RingBuf + from micropython import const import ustruct import time @@ -44,13 +47,15 @@ class CDCControlInterface(USBInterface): def __init__(self, interface_str): super().__init__(_CDC_ITF_CONTROL_CLASS, _CDC_ITF_CONTROL_SUBCLASS, _CDC_ITF_CONTROL_PROT) + self.ep_in = None + def get_itf_descriptor(self, num_eps, itf_idx, str_idx): # CDC needs a Interface Association Descriptor (IAD) # first interface is zero, two interfaces in total desc = ustruct.pack("