mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-20 08:38:00 +02:00
changed a few parameters & nvar for writeConfigurationFile function
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@84 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -6348,6 +6348,10 @@ string slsDetector::executeLine(int narg, char *args[], int action) {
|
||||
}
|
||||
sprintf(answer,"%d", setSpeed(TOT_DUTY_CYCLE));
|
||||
return string(answer);
|
||||
//gotthard
|
||||
}else if (var=="configuremac") {
|
||||
configureMAC();
|
||||
return string("mac configuration completed");
|
||||
}
|
||||
return ("Unknown command");
|
||||
|
||||
@ -7813,7 +7817,7 @@ int slsDetector::readConfigurationFile(string const fname){
|
||||
|
||||
int slsDetector::writeConfigurationFile(string const fname){
|
||||
|
||||
|
||||
int nvar;
|
||||
string names[]={ \
|
||||
"hostname", \
|
||||
"caldir", \
|
||||
@ -7839,12 +7843,16 @@ int slsDetector::writeConfigurationFile(string const fname){
|
||||
case MYTHEN:
|
||||
names[2]="trimdir";
|
||||
break;
|
||||
case GOTTHARD:
|
||||
names[3]="outdir";
|
||||
names[4]="clientip";
|
||||
names[5]="clientmac";
|
||||
nvar=6;
|
||||
break;
|
||||
default:
|
||||
;
|
||||
nvar=19;
|
||||
}
|
||||
|
||||
|
||||
int nvar=19;
|
||||
ofstream outfile;
|
||||
int iv=0;
|
||||
char *args[100];
|
||||
|
Reference in New Issue
Block a user