mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-01 17:04:55 +01:00
WIP
This commit is contained in:
@@ -312,7 +312,6 @@ void slsDetector::initializeDetectorStructure(detectorType type) {
|
||||
shm()->timerValue[ACTUAL_TIME] = 0;
|
||||
shm()->timerValue[MEASUREMENT_TIME] = 0;
|
||||
shm()->timerValue[PROGRESS] = 0;
|
||||
shm()->timerValue[MEASUREMENTS_NUMBER] = 1;
|
||||
shm()->timerValue[FRAMES_FROM_START] = 0;
|
||||
shm()->timerValue[FRAMES_FROM_START_PG] = 0;
|
||||
shm()->timerValue[ANALOG_SAMPLES] = 1;
|
||||
@@ -1522,15 +1521,6 @@ int64_t slsDetector::setTimer(timerIndex index, int64_t t) {
|
||||
FILE_LOG(logDEBUG1) << "Setting " << getTimerType(index) << " to " << t
|
||||
<< " ns/value";
|
||||
|
||||
// meausurement is only shm level
|
||||
if (index == MEASUREMENTS_NUMBER) {
|
||||
if (t >= 0) {
|
||||
shm()->timerValue[index] = t;
|
||||
FILE_LOG(logDEBUG1) << getTimerType(index) << ": " << t;
|
||||
}
|
||||
return shm()->timerValue[index];
|
||||
}
|
||||
|
||||
// send to detector
|
||||
int64_t oldtimer = shm()->timerValue[index];
|
||||
if (shm()->onlineFlag == ONLINE_FLAG) {
|
||||
|
||||
Reference in New Issue
Block a user