File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -117,21 +117,21 @@ func (m *msc) handleReset(setup usb.Setup, wValue uint16) bool {
117117func (m * msc ) stallEndpoint (ep uint8 ) {
118118 if ep == usb .MSC_ENDPOINT_IN {
119119 m .txStalled = true
120- machine .SetStallEPIn (usb .MSC_ENDPOINT_IN )
120+ machine .USBDev . SetStallEPIn (usb .MSC_ENDPOINT_IN )
121121 } else if ep == usb .MSC_ENDPOINT_OUT {
122122 m .rxStalled = true
123- machine .SetStallEPOut (usb .MSC_ENDPOINT_OUT )
123+ machine .USBDev . SetStallEPOut (usb .MSC_ENDPOINT_OUT )
124124 } else if ep == usb .CONTROL_ENDPOINT {
125- machine .SetStallEPIn (usb .CONTROL_ENDPOINT )
125+ machine .USBDev . SetStallEPIn (usb .CONTROL_ENDPOINT )
126126 }
127127}
128128
129129func (m * msc ) clearStallEndpoint (ep uint8 ) {
130130 if ep == usb .MSC_ENDPOINT_IN {
131- machine .ClearStallEPIn (usb .MSC_ENDPOINT_IN )
131+ machine .USBDev . ClearStallEPIn (usb .MSC_ENDPOINT_IN )
132132 m .txStalled = false
133133 } else if ep == usb .MSC_ENDPOINT_OUT {
134- machine .ClearStallEPOut (usb .MSC_ENDPOINT_OUT )
134+ machine .USBDev . ClearStallEPOut (usb .MSC_ENDPOINT_OUT )
135135 m .rxStalled = false
136136 }
137137}
You can’t perform that action at this time.
0 commit comments