Fix for VMS 5.5-2: Only send mode page 5 if configured as floppy.

Author: Landon Rodgers
This commit is contained in:
Michael McMaster 2019-12-02 19:37:14 +10:00
parent 54ac6377ce
commit 3a4712b524

View File

@ -1,5 +1,6 @@
// Copyright (C) 2013 Michael McMaster <michael@codesrc.com>
// Copyright (C) 2014 Doug Brown <doug@downtowndougbrown.com>
// Copyright (C) 2019 Landon Rodgers <g.landon.rodgers@gmail.com>
//
// This file is part of SCSI2SD.
//
@ -485,7 +486,8 @@ static void doModeSense(
}
}
if (pageCode == 0x05 || pageCode == 0x3F)
if ((pageCode == 0x05 || pageCode == 0x3F) &&
(scsiDev.target->cfg->deviceType == CONFIG_FLOPPY_14MB))
{
pageFound = 1;
pageIn(pc, idx, FlexibleDiskDriveGeometry, sizeof(FlexibleDiskDriveGeometry));