binaries and fix

This commit is contained in:
maliakal_d 2020-07-02 17:15:24 +02:00
parent 0dc062e6d3
commit 7c48ef8931
9 changed files with 9 additions and 2 deletions

View File

@ -1913,7 +1913,14 @@ int set_num_frames(int file_des) {
// only set
if (Server_VerifyLock() == OK) {
// only set number of frames if normal mode (not scan)
if (!scan) {
if (scan) {
if (arg != numScanSteps) {
ret = FAIL;
sprintf(mess,
"Could not set number of frames %lld. In scan mode, it is number of steps %d\n", (long long unsigned int)arg, numScanSteps);
LOG(logERROR, (mess));
}
} else {
#ifdef GOTTHARD2D
// validate #frames in burst mode
if (getBurstMode() != BURST_OFF && arg > MAX_FRAMES_IN_BURST_MODE) {

View File

@ -107,7 +107,7 @@ std::string ToString(const slsDetectorDefs::scanParameters &r) {
oss << '[';
if (r.enable) {
oss << "enabled " << std::endl
<< "dac " << r.dacInd << std::endl
<< "dac " << ToString(r.dacInd) << std::endl
<< "start " << r.startOffset << std::endl
<< "stop " << r.stopOffset << std::endl
<< "step " << r.stepSize << std::endl