Made speed 0 in burn_drive_set_speed() really maximum speed (i.e. FFFFh)
This commit is contained in:
parent
ee27c80efe
commit
f980aac5b5
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2006.11.11.152748"
|
#define Cdrskin_timestamP "2006.11.12.085808"
|
||||||
|
@ -763,6 +763,13 @@ void mmc_set_speed(struct burn_drive *d, int r, int w)
|
|||||||
{
|
{
|
||||||
struct command c;
|
struct command c;
|
||||||
|
|
||||||
|
/* ts A61112 : MMC standards prescribe FFFFh as max speed.
|
||||||
|
But libburn.h prescribes 0. */
|
||||||
|
if (r<=0 || r>0xffff)
|
||||||
|
r = 0xffff;
|
||||||
|
if (w<=0 || w>0xffff)
|
||||||
|
w = 0xffff;
|
||||||
|
|
||||||
mmc_function_spy("mmc_set_speed");
|
mmc_function_spy("mmc_set_speed");
|
||||||
memcpy(c.opcode, MMC_SET_SPEED, sizeof(MMC_SET_SPEED));
|
memcpy(c.opcode, MMC_SET_SPEED, sizeof(MMC_SET_SPEED));
|
||||||
c.retry = 1;
|
c.retry = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user