test function changed a bit

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@166 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2012-03-28 08:30:52 +00:00
parent af4262aa42
commit b227ad1b0c
2 changed files with 28 additions and 10 deletions

View File

@ -372,7 +372,7 @@ slsDetectorCommand::slsDetectorCommand(slsDetectorUtils *det) {
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdDigiTest;
i++;
descrToFuncMap[i].m_pFuncName="reg_rw"; //
descrToFuncMap[i].m_pFuncName="reg"; //
descrToFuncMap[i].m_pFuncPtr=&slsDetectorCommand::cmdRegister;
i++;
@ -2591,10 +2591,10 @@ string slsDetectorCommand::helpRegister(int narg, char *args[], int action) {
ostringstream os;
if (action==PUT_ACTION || action==HELP_ACTION) {
os << "reg_rw addr val \n writes the register addr with the value val"<< std::endl;
os << "reg addr val \n writes the register addr with the value val"<< std::endl;
}
if (action==GET_ACTION || action==HELP_ACTION) {
os << "reg_rw addr \n reads the register addr"<< std::endl;
os << "reg addr \n reads the register addr"<< std::endl;
}
return os.str();