Made speed 0 in burn_drive_set_speed() really maximum speed (i.e. FFFFh)

This commit is contained in:
Thomas Schmitt 2006-11-12 08:56:46 +00:00
parent ee27c80efe
commit f980aac5b5
2 changed files with 8 additions and 1 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2006.11.11.152748"
#define Cdrskin_timestamP "2006.11.12.085808"

View File

@ -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;