Unverified Commit a41fc32e authored by Andrea Orlati's avatar Andrea Orlati Committed by GitHub
Browse files

fix issue #699: calmux extended to control also noise diode for Kband recv. (#732)

parent 0239a966
Loading
Loading
Loading
Loading
+4 −20
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ void CRecvBossCore::calOn() throw (ComponentErrors::ValidationErrorExImpl,Compon
{
	//IRA::CError err;
	baci::ThreadSyncGuard guard(&m_mutex);
	if (m_currentRecvCode=="KKC") {
	/*if (m_currentRecvCode=="KKC") {
		loadReceiver(); //  ComponentErrors::CouldntGetComponentExImpl
		try {
			m_currentRecv->calOn();
@@ -101,15 +101,7 @@ void CRecvBossCore::calOn() throw (ComponentErrors::ValidationErrorExImpl,Compon
			throw impl;
		}
	}
/*	else if ((m_currentRecvCode=="CCC") || (m_currentRecvCode=="CHC")){
		char buffer [14] = {'s','e','t',' ','m','a','r','c','a','c',' ','o','n','\n' };
		if (!sendToRecvControl((const void *)buffer,14)) {
			_EXCPT(ComponentErrors::SocketErrorExImpl,impl,"CRecvBossCore::calOn()");
			m_status=Management::MNG_FAILURE;
			throw impl;
		}
	}*/
	else if ((m_currentRecvCode=="XXP") || (m_currentRecvCode=="CCC") || (m_currentRecvCode=="CHC")) {
	else */if ((m_currentRecvCode=="XXP") || (m_currentRecvCode=="CCC") || (m_currentRecvCode=="CHC") || (m_currentRecvCode=="KKC"))  {
		m_calMux_proxy->calOn();
		// turn the marca on through the FS
		/*IRA::CString fsBuffer("calon\n");
@@ -134,7 +126,7 @@ void CRecvBossCore::calOff() throw (ComponentErrors::ValidationErrorExImpl,Compo
{
	//IRA::CError err;
	baci::ThreadSyncGuard guard(&m_mutex);
	if (m_currentRecvCode=="KKC") {
	/*if (m_currentRecvCode=="KKC") {
		loadReceiver(); //  ComponentErrors::CouldntGetComponentExImpl
		try {
			m_currentRecv->calOff();
@@ -166,15 +158,7 @@ void CRecvBossCore::calOff() throw (ComponentErrors::ValidationErrorExImpl,Compo
			throw impl;
		}
	}
	/*else if ((m_currentRecvCode=="CCC") || (m_currentRecvCode=="CHC")) {
		char buffer [15] = {'s','e','t',' ','m','a','r','c','a','c',' ','o','f','f','\n' };
		if (!sendToRecvControl((const void *)buffer,15)) {
			_EXCPT(ComponentErrors::SocketErrorExImpl,impl,"CRecvBossCore::calOff()");
			m_status=Management::MNG_FAILURE;
			throw impl;
		}
	}*/
	else if ((m_currentRecvCode=="XXP") || (m_currentRecvCode=="CCC") || (m_currentRecvCode=="CHC")) {
	else*/ if ((m_currentRecvCode=="XXP") || (m_currentRecvCode=="CCC") || (m_currentRecvCode=="CHC") || (m_currentRecvCode=="KKC")) {
		// turn the marca on through thr FS
		/*IRA::CString fsBuffer("caloff\n");
		if (!sendToFS((const void *)fsBuffer,fsBuffer.GetLength())) {