Set default device speed for floppy, cdrom and disk to 'full'.

This commit is contained in:
Volker Ruppert 2015-08-16 16:15:46 +00:00
parent 823ba769fb
commit 792c5bdec2
2 changed files with 2 additions and 0 deletions

View File

@ -283,6 +283,7 @@ usb_cbi_device_c::usb_cbi_device_c(const char *filename)
d.type = USB_DEV_TYPE_FLOPPY;
d.maxspeed = USB_SPEED_FULL;
d.speed = d.maxspeed;
memset((void*)&s, 0, sizeof(s));
strcpy(d.devname, "BOCHS USB CBI FLOPPY");
strcpy(tmpfname, filename);

View File

@ -252,6 +252,7 @@ usb_msd_device_c::usb_msd_device_c(usbdev_type type, const char *filename)
d.type = type;
d.maxspeed = USB_SPEED_SUPER;
d.speed = USB_SPEED_FULL;
memset((void*)&s, 0, sizeof(s));
if (d.type == USB_DEV_TYPE_DISK) {
strcpy(d.devname, "BOCHS USB HARDDRIVE");