mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-17 15:27:13 +02:00
removed all the warnings and errors from the merge, also removed added -wextra compiler flag, (yet to add additional commands for moench)
This commit is contained in:
@ -31,7 +31,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-misleading-indentation")
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -std=c++11 ")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11 ")
|
||||
|
||||
# set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=thread")
|
||||
# set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=thread")
|
||||
|
@ -2123,7 +2123,7 @@ int multiSlsDetector::setROI(int n, ROI roiLimits[], int detPos) {
|
||||
ymin = roiLimits[i].ymin;
|
||||
ymax = roiLimits[i].ymax;
|
||||
|
||||
if (getDetectorsType() != JUNGFRAUCTB || getNumberOfDetectors() > 1) {
|
||||
if (getNumberOfDetectors() > 1) {
|
||||
// check roi max values
|
||||
idet = decodeNChannel(xmax, ymax, channelX, channelY);
|
||||
FILE_LOG(logDEBUG1) << "Decoded Channel max vals: " << std::endl
|
||||
|
@ -1569,7 +1569,7 @@ public:
|
||||
* @param addr wait address, -1 gets
|
||||
* @returns actual value
|
||||
*/
|
||||
uint64_t setCTBPatWaitAddr(uint64_t level, uint64_t addr=-1);
|
||||
int setCTBPatWaitAddr(uint64_t level, uint64_t addr=-1);
|
||||
|
||||
/**
|
||||
* Sets the wait time in the CTB
|
||||
|
@ -1,7 +1,5 @@
|
||||
#include "slsDetectorUsers.h"
|
||||
#include "detectorData.h"
|
||||
|
||||
#include "multiSlsDetector.h"
|
||||
#include "multiSlsDetectorClient.h"
|
||||
|
||||
|
||||
@ -235,11 +233,11 @@ int slsDetectorUsers::setFlowControl10G(int i, int detPos) {
|
||||
}
|
||||
|
||||
int slsDetectorUsers::setROI(int n, slsDetectorDefs::ROI roiLimits[], int detPos) {
|
||||
return myDetector->setROI(n, roiLimits, detPos);
|
||||
return detector.setROI(n, roiLimits, detPos);
|
||||
}
|
||||
|
||||
slsDetectorDefs::ROI* slsDetectorUsers::getROI(int &n, int detPos) {
|
||||
return myDetector->getROI(n, detPos);
|
||||
return detector.getROI(n, detPos);
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
|
||||
class detectorData;
|
||||
class multiSlsDetector;
|
||||
#include "multiSlsDetector.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
@ -572,9 +572,9 @@ uint32_t Listener::ListenToAnImage(char* buf) {
|
||||
RecordFirstIndices(fnum);
|
||||
|
||||
if (pnum >= pperFrame ) {
|
||||
FILE_LOG(logERROR, ("Bad packet %d (fnum:%lld), throwing away. "
|
||||
"Packets caught so far: %d\n",
|
||||
pnum, (long long int)fnum, numpackets));
|
||||
FILE_LOG(logERROR) << "Bad packet " << pnum <<
|
||||
"(fnum: " << fnum << "), throwing away. "
|
||||
"Packets caught so far: " << numpackets;
|
||||
return 0; // bad packet
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user