mirror of
				https://github.com/ElvishArtisan/rivendell.git
				synced 2025-11-04 08:04:12 +01:00 
			
		
		
		
	2023-05-25 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in caed(8) that caused spurious 'sent unrecognized command "ME"' messages to be sent to the syslog. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
		@@ -24177,3 +24177,6 @@
 | 
				
			|||||||
2023-05-25 Fred Gleason <fredg@paravelsystems.com>
 | 
					2023-05-25 Fred Gleason <fredg@paravelsystems.com>
 | 
				
			||||||
	* Fixed a bug in rdvairplayd(8) that caused spurious 'sent
 | 
						* Fixed a bug in rdvairplayd(8) that caused spurious 'sent
 | 
				
			||||||
	unrecognized command "TS -1"' messages to be sent to the syslog.
 | 
						unrecognized command "TS -1"' messages to be sent to the syslog.
 | 
				
			||||||
 | 
					2023-05-25 Fred Gleason <fredg@paravelsystems.com>
 | 
				
			||||||
 | 
						* Fixed a bug in caed(8) that caused spurious 'sent unrecognized
 | 
				
			||||||
 | 
						command "ME"' messages to be sent to the syslog.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
//
 | 
					//
 | 
				
			||||||
// Network server for caed(8).
 | 
					// Network server for caed(8).
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
//   (C) Copyright 2019-2021 Fred Gleason <fredg@paravelsystems.com>
 | 
					//   (C) Copyright 2019-2023 Fred Gleason <fredg@paravelsystems.com>
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
//   This program is free software; you can redistribute it and/or modify
 | 
					//   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
 | 
					//   it under the terms of the GNU General Public License version 2 as
 | 
				
			||||||
@@ -580,16 +580,18 @@ bool CaeServer::ProcessCommand(int id,const QString &cmd)
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if((f0.at(0)=="ME")&&(f0.size()>=3)) {  // Meter Enable
 | 
					  if(f0.at(0)=="ME") {  // Meter Enable
 | 
				
			||||||
    uint16_t udp_port=0xFFFF&f0.at(1).toUInt(&ok);
 | 
					    if(f0.size()>2) {  // So we don't warn if no cards are specified
 | 
				
			||||||
    if(ok) {
 | 
					      uint16_t udp_port=0xFFFF&f0.at(1).toUInt(&ok);
 | 
				
			||||||
      QList<unsigned> cards;
 | 
					      if(ok) {
 | 
				
			||||||
      for(int i=2;i<f0.size();i++) {
 | 
						QList<unsigned> cards;
 | 
				
			||||||
	cards.push_back(f0.at(i).toUInt());
 | 
						for(int i=2;i<f0.size();i++) {
 | 
				
			||||||
 | 
						  cards.push_back(f0.at(i).toUInt());
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						emit meterEnableReq(id,udp_port,cards);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      emit meterEnableReq(id,udp_port,cards);
 | 
					 | 
				
			||||||
      was_processed=true;
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    was_processed=true;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if(!was_processed) {  // Send generic error response
 | 
					  if(!was_processed) {  // Send generic error response
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user