Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/bin/nkscan/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ pub fn run(args: cli::Scan) -> anyhow::Result<()> {
.adapter_id
.is_some_and(|id| id > 0);

let uses_ma21 = uses_adapter
&& session
.capabilities()
.address
.connected_adapter
.is_some_and(|id| id == 34);

// Nothing can be framed before something is loaded
wait_for_film(
&mut session,
Expand Down Expand Up @@ -366,6 +373,19 @@ pub fn run(args: cli::Scan) -> anyhow::Result<()> {
if no_eject {
break;
}

if uses_ma21 {
println!();
println!("Scan complete.");
println!("Replace or advance the film in the MA-21, then press Enter.");
println!("Press Ctrl-C to stop.");

let mut input = String::new();
std::io::stdin().read_line(&mut input)?;

continue;
}

let ejected = session.eject()?;
if ejected {
info!("Ejected");
Expand Down
Loading