From 7bc4b8840af7338cf4d99bebdaa5adbee9b86564 Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Wed, 2 Nov 2022 23:21:46 +0100 Subject: [PATCH] scsi_bus: fix device selection bug. --- devices/common/scsi/scsi_bus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/common/scsi/scsi_bus.cpp b/devices/common/scsi/scsi_bus.cpp index 2a47738..0b626cb 100644 --- a/devices/common/scsi/scsi_bus.cpp +++ b/devices/common/scsi/scsi_bus.cpp @@ -195,7 +195,7 @@ bool ScsiBus::begin_selection(int initiator_id, int target_id, bool atn) this->assert_ctrl_line(initiator_id, SCSI_CTRL_SEL); - this->data_lines |= (1 << initiator_id) | (1 << target_id); + this->data_lines = (1 << initiator_id) | (1 << target_id); if (atn) { assert_ctrl_line(initiator_id, SCSI_CTRL_ATN);