Fix issue setting new Blind Writes config option
authorMichael McMaster <michael@codesrc.com>
Sat, 24 Oct 2020 10:34:09 +0000 (20:34 +1000)
committerMichael McMaster <michael@codesrc.com>
Sat, 24 Oct 2020 10:34:09 +0000 (20:34 +1000)
src/scsi2sd-util6/BoardPanel.cc

index 2fc645bbbeb1eeba15a7085a36e3022e1946453d..c342cb20fdaf893fc6b322dfd6aea6e8bdfe2b22 100644 (file)
@@ -193,8 +193,8 @@ BoardPanel::getConfig() const
                (mySelLatchCtrl->IsChecked() ? S2S_CFG_ENABLE_SEL_LATCH : 0) |
                (myMapLunsCtrl->IsChecked() ? S2S_CFG_MAP_LUNS_TO_IDS : 0);
 
-       config.flags6 = (myTermCtrl->IsChecked() ? S2S_CFG_ENABLE_TERMINATOR : 0);
-       config.flags6 = (myBlindWriteCtrl->IsChecked() ? S2S_CFG_ENABLE_BLIND_WRITES : 0);
+       config.flags6 = (myTermCtrl->IsChecked() ? S2S_CFG_ENABLE_TERMINATOR : 0) |
+               (myBlindWriteCtrl->IsChecked() ? S2S_CFG_ENABLE_BLIND_WRITES : 0);
 
        config.startupDelay = CtrlGetValue<unsigned int>(myStartDelayCtrl).first;
        config.selectionDelay = CtrlGetValue<unsigned int>(mySelDelayCtrl).first;