mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-16 12:07:44 +01:00
fixed fpgaversion etc register problems
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@109 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@@ -6194,8 +6194,12 @@ string slsDetector::executeLine(int narg, char *args[], int action) {
|
||||
}
|
||||
/* DEBUGGING FUNCTIONS */
|
||||
else if (var=="reg_rw") {
|
||||
if(narg<2)
|
||||
return string("\nError:Use gotthard_put i:reg_rw (address) (value in hex)OR gotthard_get i:reg_rw (address)");
|
||||
sscanf(args[1],"%x",&ival);
|
||||
if (action==PUT_ACTION) {
|
||||
if(narg<3)
|
||||
return string("\nError:Use gotthard_put i:reg_rw (address) (value in hex)OR gotthard_get i:reg_rw (address)");
|
||||
sscanf(args[2],"%x",&ival2);
|
||||
sprintf(answer,"%x",writeRegister(ival,ival2));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user