mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
2015-03-23 Fred Gleason <fredg@paravelsystems.com>
* Fixed a fencepost bug in 'ripcd/sasusi.cpp' that caused the last relay in the list to fail to respond to a 'GO' RML.
This commit is contained in:
@@ -288,10 +288,11 @@ void SasUsi::processCommand(RDMacro *cmd)
|
||||
}
|
||||
cmd_byte=0x01;
|
||||
}
|
||||
if(cmd->arg(2).toUInt()<sas_relay_numbers.size()) {
|
||||
if(cmd->arg(2).toUInt()<=sas_relay_numbers.size()) {
|
||||
if(sas_relay_numbers[cmd->arg(2).toUInt()-1]>=0) {
|
||||
snprintf(str,256,"\x05R%d%04d\x0D\x0A",cmd_byte,
|
||||
sas_relay_numbers[cmd->arg(2).toUInt()-1]);
|
||||
syslog(LOG_NOTICE,"USI: %s",(const char *)PrettifyCommand(str));
|
||||
SendCommand(str);
|
||||
cmd->acknowledge(true);
|
||||
emit rmlEcho(cmd);
|
||||
|
Reference in New Issue
Block a user