Made speed 0 in burn_drive_set_speed() really maximum speed (i.e. FFFFh)
This commit is contained in:
parent
aa813303a4
commit
1bfd7b5a5f
@ -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;
|
||||
|
||||
/* 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");
|
||||
memcpy(c.opcode, MMC_SET_SPEED, sizeof(MMC_SET_SPEED));
|
||||
c.retry = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user