Fix for VMS 5.5-2: Only send mode page 5 if configured as floppy.
authorMichael McMaster <michael@codesrc.com>
Mon, 2 Dec 2019 09:37:14 +0000 (19:37 +1000)
committerMichael McMaster <michael@codesrc.com>
Mon, 2 Dec 2019 09:37:14 +0000 (19:37 +1000)
Author: Landon Rodgers

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