From 018e58b51ea76623211802edf316e8d2ceea1287 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 8 Oct 2018 02:32:54 +0200 Subject: [PATCH] Fixed a minor messup in the NCR 5380 code. --- src/scsi/scsi_ncr5380.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scsi/scsi_ncr5380.c b/src/scsi/scsi_ncr5380.c index 1133a26d6..3b0254593 100644 --- a/src/scsi/scsi_ncr5380.c +++ b/src/scsi/scsi_ncr5380.c @@ -9,7 +9,7 @@ * Implementation of the NCR 5380 series of SCSI Host Adapters * made by NCR. These controllers were designed for the ISA bus. * - * Version: @(#)scsi_ncr5380.c 1.0.19 2018/10/08 + * Version: @(#)scsi_ncr5380.c 1.0.20 2018/10/08 * * Authors: Sarah Walker, * TheCollector1995, @@ -977,7 +977,7 @@ ncr_callback(void *priv) ncr_log("NCR ICR for Command=%02x\n", ncr->bus_host & BUS_ACK); if (ncr->bus_host & BUS_ACK) { - if (get_cmd_len(ncr->command[0]) < ncr->command_pos) { + if (ncr->command_pos < get_cmd_len(ncr->command[0])) { /*Write command byte to the output data register*/ ncr->command[ncr->command_pos++] = BUS_GETDATA(ncr->bus_host);