Fix for VMS 5.5-2: Only send mode page 5 if configured as floppy.
authorMichael McMaster <michael@codesrc.com>
Tue, 19 Nov 2019 06:00:34 +0000 (16:00 +1000)
committerMichael McMaster <michael@codesrc.com>
Tue, 19 Nov 2019 06:00:34 +0000 (16:00 +1000)
Author: Landon Rodgers

src/firmware/mode.c

index fd4ba34..5235e44 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
@@ -467,7 +468,8 @@ static void doModeSense(
                }\r
        }\r
 \r
-       if (pageCode == 0x05 || pageCode == 0x3F)\r
+       if ((pageCode == 0x05 || pageCode == 0x3F) &&\r
+               (scsiDev.target->cfg->deviceType == S2S_CFG_FLOPPY_14MB))\r
        {\r
                pageFound = 1;\r
                pageIn(pc, idx, FlexibleDiskDriveGeometry, sizeof(FlexibleDiskDriveGeometry));\r