diff options
Diffstat (limited to 'common/usb.c')
| -rw-r--r-- | common/usb.c | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/common/usb.c b/common/usb.c index 44a435af6..4f7c520b3 100644 --- a/common/usb.c +++ b/common/usb.c @@ -145,10 +145,14 @@ int usb_stop(void)  /*   * disables the asynch behaviour of the control message. This is used for data   * transfers that uses the exclusiv access to the control and bulk messages. + * Returns the old value so it can be restored later.   */ -void usb_disable_asynch(int disable) +int usb_disable_asynch(int disable)  { +	int old_value = asynch_allowed; +  	asynch_allowed = !disable; +	return old_value;  } |