Bug fix: Endless loop if transport error occurs while waiting for drive ready

This commit is contained in:
Thomas Schmitt 2015-10-23 12:25:37 +00:00
parent ee17dc8efb
commit 7684761afc
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2015.10.23.121415"
#define Cdrskin_timestamP "2015.10.23.122644"

View File

@ -128,7 +128,7 @@ int spc_test_unit_ready_r(struct burn_drive *d, int *key, int *asc, int *ascq,
((c->sense[2] & 0x0f) == 0 || (c->sense[2] & 0x0f) == 2) &&
(c->sense[15] & 0x80))
*progress = (c->sense[16] << 8) + c->sense[17];
return (key == 0);
return (*key == 0);
}
return 1;
}