From c5eff4f5fd45af48d9fb9b31396ff7c04f5836b5 Mon Sep 17 00:00:00 2001 From: Troy Date: Wed, 28 Dec 2022 22:16:54 -0500 Subject: [PATCH] megastemode renamed to maplunstoids in inifile --- src/BlueSCSI.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/BlueSCSI.cpp b/src/BlueSCSI.cpp index 3d2b4cb..b20b9e7 100644 --- a/src/BlueSCSI.cpp +++ b/src/BlueSCSI.cpp @@ -74,7 +74,7 @@ SCSI_INQUIRY_DATA default_hdd, default_optical; // Enables SCSI IDs to be representing as LUNs on SCSI ID 0 // This supports a specific case for the Atari MegaSTE internal SCSI adapter -bool megaste_mode = false; +bool ids_as_luns = false; // function table byte (*scsi_command_table[MAX_SCSI_COMMAND])(SCSI_DEVICE *dev, const byte *cdb); @@ -518,10 +518,10 @@ void setup() //HD image file open scsi_id_mask = 0x00; - if(ini_getl("SCSI", "megastemode", 0, BLUESCSI_INI)) + if(ini_getl("SCSI", "MapLunsToIDs", 0, BLUESCSI_INI)) { - LOG_FILE.println("MSTE_MODE - IDs treated as LUNs"); - megaste_mode = true; + LOG_FILE.println("IDs treated as LUNs for ID0"); + ids_as_luns = true; } if(SD.exists("scsi-config.txt")) { @@ -1229,7 +1229,7 @@ void loop() if(m_lun > MAX_SCSILUN) { m_lun = (cmd[1] & 0xe0) >> 5; - if(megaste_mode) + if(ids_as_luns) { // if this mode is enabled we are going to substitute all SCSI IDs as LUNs on ID0 // this is because the MegaSTE internal adapter only supports ID0. This lets multiple