mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-14 22:51:13 +02:00
2019-07-23 Fred Gleason <fredg@paravelsystems.com>
* Fixed regressions that made serial device operation unreliable.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
// A Rivendell switcher driver for the SAS64000 connected via
|
||||
// a GPI-1600
|
||||
//
|
||||
// (C) Copyright 2002-2004,2016-2018 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2019 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// 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
|
||||
@@ -117,7 +117,7 @@ void Sas64000Gpi::processCommand(RDMacro *cmd)
|
||||
(char)((cmd->arg(1).toInt()-1)/128),
|
||||
(char)(((cmd->arg(1).toInt()-1)%128)+
|
||||
((cmd->arg(1).toInt()-1)/128))&0x7F);
|
||||
sas_device->writeBlock(str,7);
|
||||
sas_device->write(str,7);
|
||||
cmd->acknowledge(true);
|
||||
emit rmlEcho(cmd);
|
||||
break;
|
||||
@@ -150,7 +150,7 @@ void Sas64000Gpi::processCommand(RDMacro *cmd)
|
||||
emit gpoChanged(sas_matrix,cmd->arg(2).toInt()-1,true);
|
||||
}
|
||||
sprintf(str,"%c%c\xFF",cmd_byte,cmd->arg(2).toInt()-1);
|
||||
sas_device->writeBlock(str,3);
|
||||
sas_device->write(str,3);
|
||||
cmd->acknowledge(true);
|
||||
emit rmlEcho(cmd);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user