Implemented automatic START UNIT after STOP UNIT before any other SCSI command

This commit is contained in:
2009-08-24 20:24:39 +00:00
parent b900831914
commit 22c187cd61
4 changed files with 19 additions and 3 deletions

View File

@ -236,6 +236,11 @@ int mmc_function_spy(struct burn_drive *d, char * text)
d->cancel = 1;
return 0;
}
if (d->is_stopped && strcmp(text, "stop_unit") != 0 &&
strcmp(text, "start_unit") != 0) {
d->start_unit(d);
d->is_stopped = 0;
}
return 1;
}