File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ where
233
233
usb. devcmdstat . modify ( |_, w| w. dev_en ( ) . set_bit ( ) . dcon ( ) . set_bit ( ) ) ;
234
234
235
235
// HERE TOO?
236
- usb. inten . modify ( |r, w| unsafe { w. bits ( r. bits ( ) | ( ( 1 << 11 ) - 1 ) ) } ) ;
236
+ usb. inten . modify ( |r, w| unsafe { w. bits ( r. bits ( ) | ( ( 1 << 12 ) - 1 ) ) } ) ;
237
237
usb. inten . modify ( |r, w| unsafe { w. bits ( r. bits ( ) | ( 1 << 31 ) ) } ) ;
238
238
} ) ;
239
239
}
@@ -328,11 +328,10 @@ where
328
328
329
329
// First handle endpoint 0 (the only control endpoint)
330
330
if intstat_r. ep0out ( ) . bit_is_set ( ) {
331
- if devcmdstat. read ( ) . setup ( ) . bit_is_set ( ) {
332
- ep_setup |= bit;
333
- } else {
334
- ep_out |= bit;
335
- }
331
+ ep_out |= bit;
332
+ }
333
+ if devcmdstat. read ( ) . setup ( ) . bit_is_set ( ) {
334
+ ep_setup |= bit;
336
335
}
337
336
338
337
if intstat_r. ep0in ( ) . bit_is_set ( ) {
You can’t perform that action at this time.
0 commit comments