DriveStatus API + reset() + wait_ready with fallback
- DriveStatus enum: TrayOpen, NoDisc, DiscPresent, NotReady, Unknown - drive_status(): GET EVENT STATUS NOTIFICATION with TUR fallback - reset(): PREVENT ALLOW → START STOP → init() escalation - wait_ready(): tries reset on Illegal Request, falls back to drive_status - Remaining: standard READ(10) still fails in LibreDrive stuck state
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ pub(crate) mod sector;
|
||||
pub(crate) mod speed;
|
||||
pub(crate) mod udf;
|
||||
|
||||
pub use drive::{find_drive, find_drives, resolve_device, DriveSession};
|
||||
pub use drive::{find_drive, find_drives, resolve_device, DriveSession, DriveStatus};
|
||||
pub use drive::capture::{DriveCapture, CapturedFeature, capture_drive_data, mask_string, mask_bytes};
|
||||
pub use error::{Error, Result};
|
||||
pub use event::{Event, EventKind};
|
||||
|
||||
Reference in New Issue
Block a user