mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-07 10:30:41 +02:00
WIP
This commit is contained in:
parent
ff729fb43f
commit
279986d77c
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1741,7 +1741,7 @@ int start_state_machine(int blocking, int file_des) {
|
|||||||
if (scanTrimbits) {
|
if (scanTrimbits) {
|
||||||
LOG(logINFOBLUE, ("Trimbits scan %d/%d: [%d]\n", i, times,
|
LOG(logINFOBLUE, ("Trimbits scan %d/%d: [%d]\n", i, times,
|
||||||
scanSteps[i]));
|
scanSteps[i]));
|
||||||
#ifdef EIGERD
|
#if defined(EIGERD) || defined(MYTHEN3D)
|
||||||
setAllTrimbits(scanSteps[i]);
|
setAllTrimbits(scanSteps[i]);
|
||||||
#else
|
#else
|
||||||
LOG(logERROR, ("trimbit scan not implemented!\n"));
|
LOG(logERROR, ("trimbit scan not implemented!\n"));
|
||||||
@ -7512,7 +7512,7 @@ int enable_scan(int file_des) {
|
|||||||
} else {
|
} else {
|
||||||
// trimbit scan
|
// trimbit scan
|
||||||
if (args[0] == TRIMBIT_SCAN) {
|
if (args[0] == TRIMBIT_SCAN) {
|
||||||
#ifdef EIGERD
|
#if defined(EIGERD) || defined(MYTHEN3D)
|
||||||
if (startOffset < 0 || startOffset > MAX_TRIMBITS_VALUE ||
|
if (startOffset < 0 || startOffset > MAX_TRIMBITS_VALUE ||
|
||||||
endOffset < 0 || endOffset > MAX_TRIMBITS_VALUE) {
|
endOffset < 0 || endOffset > MAX_TRIMBITS_VALUE) {
|
||||||
ret = FAIL;
|
ret = FAIL;
|
||||||
@ -7521,11 +7521,13 @@ int enable_scan(int file_des) {
|
|||||||
} else {
|
} else {
|
||||||
scanTrimbits = 1;
|
scanTrimbits = 1;
|
||||||
LOG(logINFOBLUE, ("Trimbit scan enabled\n"));
|
LOG(logINFOBLUE, ("Trimbit scan enabled\n"));
|
||||||
|
#ifdef EIGERD
|
||||||
// changes settings to undefined
|
// changes settings to undefined
|
||||||
setSettings(UNDEFINED);
|
setSettings(UNDEFINED);
|
||||||
LOG(logERROR,
|
LOG(logERROR,
|
||||||
("Settings has been changed to undefined (change all "
|
("Settings has been changed to undefined (change all "
|
||||||
"trimbits)\n"));
|
"trimbits)\n"));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
ret = FAIL;
|
ret = FAIL;
|
||||||
|
@ -7,6 +7,6 @@
|
|||||||
#define APIGOTTHARD 0x200630
|
#define APIGOTTHARD 0x200630
|
||||||
#define APIGOTTHARD2 0x200630
|
#define APIGOTTHARD2 0x200630
|
||||||
#define APIJUNGFRAU 0x200630
|
#define APIJUNGFRAU 0x200630
|
||||||
#define APIMYTHEN3 0x200630
|
|
||||||
#define APIMOENCH 0x200630
|
#define APIMOENCH 0x200630
|
||||||
|
#define APIMYTHEN3 0x200630
|
||||||
#define APIEIGER 0x200630
|
#define APIEIGER 0x200630
|
||||||
|
Loading…
x
Reference in New Issue
Block a user