Don't use ERR_ABORTED. (#375)

This commit is contained in:
Scott Shawcroft 2017-10-26 06:08:29 -07:00 committed by Dan Halbert
parent d613776f0d
commit ee18b5cbab

View File

@ -80,7 +80,7 @@ int32_t usb_msc_disk_eject(uint8_t lun) {
fs_user_mount_t* current_mount = get_vfs(lun);
// Return ERR_NOT_READY if not ready, otherwise ERR_NONE.
if (current_mount == NULL) {
return ERR_ABORTED;
return ERR_NOT_FOUND;
}
// TODO(tannewt): Should we flush here?
return ERR_NONE;
@ -98,7 +98,7 @@ int32_t usb_msc_disk_is_ready(uint8_t lun) {
fs_user_mount_t* current_mount = get_vfs(lun);
if (current_mount == NULL) {
return ERR_ABORTED;
return ERR_NOT_FOUND;
}
return ERR_NONE;
}