Fix for VMS 5.5-2: Only send mode page 5 if configured as floppy.
[SCSI2SD.git] / software / SCSI2SD / src / mode.c
index bd9ccc2..bb16cf7 100755 (executable)
@@ -1,5 +1,6 @@
 //     Copyright (C) 2013 Michael McMaster <michael@codesrc.com>\r
 //  Copyright (C) 2014 Doug Brown <doug@downtowndougbrown.com>\r
+//  Copyright (C) 2019 Landon Rodgers <g.landon.rodgers@gmail.com>\r
 //\r
 //     This file is part of SCSI2SD.\r
 //\r
@@ -485,7 +486,8 @@ static void doModeSense(
                }\r
        }\r
 \r
-       if (pageCode == 0x05 || pageCode == 0x3F)\r
+       if ((pageCode == 0x05 || pageCode == 0x3F) &&\r
+               (scsiDev.target->cfg->deviceType == CONFIG_FLOPPY_14MB))\r
        {\r
                pageFound = 1;\r
                pageIn(pc, idx, FlexibleDiskDriveGeometry, sizeof(FlexibleDiskDriveGeometry));\r