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> {
105105 /// wake up in other mode is invalid and host will most likely disable such a device.
106106 pub fn remote_wakeup ( & self , resume : bool ) {
107107 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 ( ) ) ) ;
110112 } )
111113 }
112114}
@@ -320,10 +322,7 @@ impl<USB: UsbPeripheral> usb_device::bus::UsbBus for UsbBus<USB> {
320322
321323 fn suspend ( & self ) {
322324 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 ( ) ) ;
327326 } ) ;
328327 }
329328
You can’t perform that action at this time.
0 commit comments