After loading tray wait for unit to become ready or to report some clear error

This commit is contained in:
2007-03-15 19:50:57 +00:00
parent 9e1b3719d6
commit 64233b0ccc
4 changed files with 44 additions and 3 deletions

View File

@ -3,9 +3,11 @@
/* scsi block commands */
#include <string.h>
#include <unistd.h>
#include "transport.h"
#include "sbc.h"
#include "spc.h"
#include "options.h"
/* spc command set */
@ -23,6 +25,7 @@ void sbc_load(struct burn_drive *d)
c.dir = NO_TRANSFER;
c.page = NULL;
d->issue_command(d, &c);
spc_wait_unit_attention(d, 60);
}
void sbc_eject(struct burn_drive *d)