Skip to content

Commit ee18b5c

Browse files
tannewtdhalbert
authored andcommitted
Don't use ERR_ABORTED. (adafruit#375)
1 parent d613776 commit ee18b5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/atmel-samd/usb_mass_storage.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ int32_t usb_msc_disk_eject(uint8_t lun) {
8080
fs_user_mount_t* current_mount = get_vfs(lun);
8181
// Return ERR_NOT_READY if not ready, otherwise ERR_NONE.
8282
if (current_mount == NULL) {
83-
return ERR_ABORTED;
83+
return ERR_NOT_FOUND;
8484
}
8585
// TODO(tannewt): Should we flush here?
8686
return ERR_NONE;
@@ -98,7 +98,7 @@ int32_t usb_msc_disk_is_ready(uint8_t lun) {
9898

9999
fs_user_mount_t* current_mount = get_vfs(lun);
100100
if (current_mount == NULL) {
101-
return ERR_ABORTED;
101+
return ERR_NOT_FOUND;
102102
}
103103
return ERR_NONE;
104104
}

0 commit comments

Comments
 (0)