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