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

trunk@386
Thomas Schmitt 16 years ago
parent aa813303a4
commit 1bfd7b5a5f
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 7
      libburn/mmc.c

@ -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…
Cancel
Save