mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 23:10:02 +02:00
bug did not give error when switching to hdf5
This commit is contained in:
parent
5713cd6092
commit
88b6fabb0d
@ -250,10 +250,11 @@ void UDPBaseImplementation::setFileFormat(const fileFormat f){
|
||||
switch(f){
|
||||
#ifdef HDF5C
|
||||
case HDF5:
|
||||
fileFormatType = f;
|
||||
fileFormatType = HDF5;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
fileFormatType = f;
|
||||
fileFormatType = BINARY;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -114,10 +114,11 @@ void UDPStandardImplementation::setFileFormat(const fileFormat f){
|
||||
switch(f){
|
||||
#ifdef HDF5C
|
||||
case HDF5:
|
||||
fileFormatType = f;
|
||||
fileFormatType = HDF5;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
fileFormatType = f;
|
||||
fileFormatType = BINARY;
|
||||
break;
|
||||
}
|
||||
//destroy file writer, set file format and create file writer
|
||||
|
@ -2179,7 +2179,7 @@ int slsReceiverTCPIPInterface::set_file_format() {
|
||||
retval = receiverBase->getFileFormat();
|
||||
if(f >= 0 && retval != f){
|
||||
ret = FAIL;
|
||||
sprintf(mess,"Could not set file format to %d, returned %d\n",f,retval);
|
||||
sprintf(mess,"Could not set file format to %s, returned %s\n",getFileFormatType(f).c_str(),getFileFormatType(retval).c_str());
|
||||
FILE_LOG(logERROR) << "Warning: " << mess;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user