diff options
Diffstat (limited to 'firmware/usbstack')
-rw-r--r-- | firmware/usbstack/usb_storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index 3f3baa383c..f84cd4eefe 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c | |||
@@ -356,7 +356,7 @@ void usb_storage_try_release_storage(void) | |||
356 | bool canrelease=true; | 356 | bool canrelease=true; |
357 | int i; | 357 | int i; |
358 | for(i=0;i<storage_num_drives();i++) { | 358 | for(i=0;i<storage_num_drives();i++) { |
359 | if(ejected[i]==false && locked[i]==true) { | 359 | if(!ejected[i] && locked[i]) { |
360 | canrelease=false; | 360 | canrelease=false; |
361 | break; | 361 | break; |
362 | } | 362 | } |