From 8b90256b28932cf66a1eac60a26dcabe2aa1ab89 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Sun, 16 Feb 2020 14:24:45 -0500 Subject: [PATCH] 2020-02-16 Fred Gleason * Cleaned up the device access mode in the SAS USI switcher driver. --- ChangeLog | 3 +++ ripcd/sasusi.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1a47cb24..e26c7bb3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19601,3 +19601,6 @@ 2020-02-16 Fred Gleason * Cleaned up the device access mode in the SAS 64000gpi switcher driver. +2020-02-16 Fred Gleason + * Cleaned up the device access mode in the SAS USI switcher + driver. diff --git a/ripcd/sasusi.cpp b/ripcd/sasusi.cpp index ba4e28a7..a847f27b 100644 --- a/ripcd/sasusi.cpp +++ b/ripcd/sasusi.cpp @@ -2,7 +2,7 @@ // // A Rivendell switcher driver for the SAS USI Protocol // -// (C) Copyright 2002-2019 Fred Gleason +// (C) Copyright 2002-2020 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -88,7 +88,7 @@ SasUsi::SasUsi(RDMatrix *matrix,QObject *parent) sas_device->setSpeed(tty->baudRate()); sas_device->setWordLength(tty->dataBits()); sas_device->setParity(tty->parity()); - sas_device->open(QIODevice::Unbuffered|QIODevice::ReadWrite); + sas_device->open(QIODevice::Unbuffered|QIODevice::WriteOnly); } delete tty;