File tree 1 file changed +5
-5
lines changed
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 {
117
117
func (m * msc ) stallEndpoint (ep uint8 ) {
118
118
if ep == usb .MSC_ENDPOINT_IN {
119
119
m .txStalled = true
120
- machine .SetStallEPIn (usb .MSC_ENDPOINT_IN )
120
+ machine .USBDev . SetStallEPIn (usb .MSC_ENDPOINT_IN )
121
121
} else if ep == usb .MSC_ENDPOINT_OUT {
122
122
m .rxStalled = true
123
- machine .SetStallEPOut (usb .MSC_ENDPOINT_OUT )
123
+ machine .USBDev . SetStallEPOut (usb .MSC_ENDPOINT_OUT )
124
124
} else if ep == usb .CONTROL_ENDPOINT {
125
- machine .SetStallEPIn (usb .CONTROL_ENDPOINT )
125
+ machine .USBDev . SetStallEPIn (usb .CONTROL_ENDPOINT )
126
126
}
127
127
}
128
128
129
129
func (m * msc ) clearStallEndpoint (ep uint8 ) {
130
130
if ep == usb .MSC_ENDPOINT_IN {
131
- machine .ClearStallEPIn (usb .MSC_ENDPOINT_IN )
131
+ machine .USBDev . ClearStallEPIn (usb .MSC_ENDPOINT_IN )
132
132
m .txStalled = false
133
133
} else if ep == usb .MSC_ENDPOINT_OUT {
134
- machine .ClearStallEPOut (usb .MSC_ENDPOINT_OUT )
134
+ machine .USBDev . ClearStallEPOut (usb .MSC_ENDPOINT_OUT )
135
135
m .rxStalled = false
136
136
}
137
137
}
You can’t perform that action at this time.
0 commit comments