File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -105,8 +105,10 @@ impl<USB: UsbPeripheral> UsbBus<USB> {
105
105
/// wake up in other mode is invalid and host will most likely disable such a device.
106
106
pub fn remote_wakeup ( & self , resume : bool ) {
107
107
interrupt:: free ( |cs| {
108
- self . regs . borrow ( cs)
109
- . cntr . modify ( |r, w| w. resume ( ) . bit ( resume && r. fsusp ( ) . is_suspend ( ) ) ) ;
108
+ self . regs
109
+ . borrow ( cs)
110
+ . cntr
111
+ . modify ( |r, w| w. resume ( ) . bit ( resume && r. fsusp ( ) . is_suspend ( ) ) ) ;
110
112
} )
111
113
}
112
114
}
@@ -320,10 +322,7 @@ impl<USB: UsbPeripheral> usb_device::bus::UsbBus for UsbBus<USB> {
320
322
321
323
fn suspend ( & self ) {
322
324
interrupt:: free ( |cs| {
323
- self . regs
324
- . borrow ( cs)
325
- . cntr
326
- . modify ( |_, w| w. fsusp ( ) . set_bit ( ) ) ;
325
+ self . regs . borrow ( cs) . cntr . modify ( |_, w| w. fsusp ( ) . set_bit ( ) ) ;
327
326
} ) ;
328
327
}
329
328
You can’t perform that action at this time.
0 commit comments